JinwangMok commited on
Commit
4cb26d4
·
verified ·
1 Parent(s): 38658b7

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def respond(message):
4
+ content = "앵무새: " + message
5
+ response = ""
6
+ for token in content:
7
+ response += token
8
+ yield response
9
+
10
+ demo = gr.ChatInterface(respond)
11
+
12
+ if __name__ == "__main__":
13
+ demo.launch()