shaderaven commited on
Commit
ca7af73
1 Parent(s): 869a253

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -4
app.py CHANGED
@@ -1,7 +1,14 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
 
 
 
 
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()