chiachun1224 commited on
Commit
abc4331
·
verified ·
1 Parent(s): 07dd4fe

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ def respond(message, history):
4
+ history = history or []
5
+ response = f"你說的是:{message}"
6
+ history.append((message, response))
7
+ return history, history
8
+
9
+ gr.ChatInterface(respond, title="B10090087 張嘉峻").launch()