Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = ""
|