Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def chat_response(message, history):
|
|
| 34 |
)
|
| 35 |
return resp.choices[0].message.content
|
| 36 |
|
| 37 |
-
|
| 38 |
fn=chat_response,
|
| 39 |
title="😡憤怒聊天機器人(Angry Chatbot)",
|
| 40 |
description="試試看是否可以讓機器人情緒好一點!",
|
|
@@ -44,4 +44,4 @@ def chat_response(message, history):
|
|
| 44 |
theme="soft",
|
| 45 |
)
|
| 46 |
|
| 47 |
-
demo.launch(
|
|
|
|
| 34 |
)
|
| 35 |
return resp.choices[0].message.content
|
| 36 |
|
| 37 |
+
demo = gr.ChatInterface(
|
| 38 |
fn=chat_response,
|
| 39 |
title="😡憤怒聊天機器人(Angry Chatbot)",
|
| 40 |
description="試試看是否可以讓機器人情緒好一點!",
|
|
|
|
| 44 |
theme="soft",
|
| 45 |
)
|
| 46 |
|
| 47 |
+
demo.launch()
|