Spaces:
Runtime error
Runtime error
Add torch
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import gradio as gr
|
|
7 |
# iface.launch()
|
8 |
|
9 |
import spaces
|
|
|
10 |
from transformers import AutoTokenizer, AutoModelForCausalLM, Trainer, TrainingArguments, pipeline, set_seed
|
11 |
|
12 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|
|
|
7 |
# iface.launch()
|
8 |
|
9 |
import spaces
|
10 |
+
import torch
|
11 |
from transformers import AutoTokenizer, AutoModelForCausalLM, Trainer, TrainingArguments, pipeline, set_seed
|
12 |
|
13 |
device = "cuda:0" if torch.cuda.is_available() else "cpu"
|