Spaces:
Runtime error
Runtime error
Commit
•
ca7af73
1
Parent(s):
869a253
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,14 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
def
|
4 |
-
|
5 |
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
def predict(message, history):
|
4 |
+
# output = message # debug mode
|
5 |
|
6 |
+
output = str(llm_ans(message))
|
7 |
+
return output
|
8 |
+
|
9 |
+
demo = gr.ChatInterface(
|
10 |
+
predict,
|
11 |
+
title = f'LLM ({CFG.model_name}) for MyChatENRU'
|
12 |
+
)
|
13 |
+
|
14 |
+
demo.launch()
|