Spaces:
Sleeping
Sleeping
Razavipour
commited on
Commit
•
d910041
1
Parent(s):
8a8b25b
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import LEDForConditionalGeneration, LEDTokenizer
|
3 |
import torch
|
4 |
from datasets import load_dataset
|
|
|
5 |
|
6 |
# Set device to GPU if available
|
7 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
2 |
from transformers import LEDForConditionalGeneration, LEDTokenizer
|
3 |
import torch
|
4 |
from datasets import load_dataset
|
5 |
+
import re
|
6 |
|
7 |
# Set device to GPU if available
|
8 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|