Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ tokenizer = AutoTokenizer.from_pretrained("ADEL/ANQG")
|
|
| 12 |
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 14 |
print("device",device)
|
| 15 |
-
model=model.to(device)
|
| 16 |
|
| 17 |
import gradio as gr
|
| 18 |
def generate__questions(cnt,ans):
|
|
|
|
| 12 |
|
| 13 |
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 14 |
print("device",device)
|
| 15 |
+
model=model.to(device);
|
| 16 |
|
| 17 |
import gradio as gr
|
| 18 |
def generate__questions(cnt,ans):
|