hysts HF Staff commited on
Commit
99c8158
·
1 Parent(s): 8bed932
Files changed (1) hide show
  1. app.py +7 -4
app.py CHANGED
@@ -2,8 +2,11 @@
2
 
3
  import gradio as gr
4
 
5
- with gr.Blocks() as demo:
6
- pass
7
 
8
- if __name__ == "__main__":
9
- demo.queue().launch()
 
 
 
 
 
 
2
 
3
  import gradio as gr
4
 
 
 
5
 
6
+ def fn(message, history, text):
7
+ return message
8
+
9
+
10
+ with gr.Blocks() as demo:
11
+ gr.ChatInterface(fn=fn, additional_inputs=[gr.Textbox()])
12
+ demo.queue().launch()