pabloruizponce commited on
Commit
ec4c52c
1 Parent(s): e00c0aa

Removed cuda (for now)

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -29,7 +29,8 @@ def generate(textI, texti1, texti2):
29
  return filename
30
 
31
  model = AutoModel.from_pretrained("pabloruizponce/in2IN", trust_remote_code=True)
32
- model.to("cuda")
 
33
  demo = gr.Interface(fn=generate,
34
  inputs=[gr.Text(label="Interaction Description"),
35
  gr.Text(label="Individual1 Description"),
 
29
  return filename
30
 
31
  model = AutoModel.from_pretrained("pabloruizponce/in2IN", trust_remote_code=True)
32
+ if torch.cuda.is_available():
33
+ model.to("cuda")
34
  demo = gr.Interface(fn=generate,
35
  inputs=[gr.Text(label="Interaction Description"),
36
  gr.Text(label="Individual1 Description"),