chansung commited on
Commit
e8fb838
1 Parent(s): 7932e5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -1,5 +1,11 @@
 
1
  import gradio as gr
2
 
 
 
 
 
 
3
  def chat(user_input):
4
  bot_response = "hello world"
5
  response = ""
 
1
+ import torch
2
  import gradio as gr
3
 
4
+ from gen import get_pretrained_models, get_output, setup_model_parallel
5
+
6
+ torch.cuda.set_device(0)
7
+ torch.cuda.empty_cache()
8
+
9
  def chat(user_input):
10
  bot_response = "hello world"
11
  response = ""