j2moreno commited on
Commit
e3c5eb3
1 Parent(s): d9d6c5f
Files changed (1) hide show
  1. app.py +1 -0
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"