superalteuism commited on
Commit
1cd2280
·
verified ·
1 Parent(s): e7be45d

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def chat(message, history):
4
+ reply = "You said: " + message
5
+ history = history + [[message, reply]]
6
+ return reply, history
7
+
8
+ demo = gr.ChatInterface(chat)
9
+ demo.queue()
10
+ demo.launch()