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