Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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()
|