Update app.py
Browse files
app.py
CHANGED
|
@@ -38,8 +38,8 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 38 |
response = get_response(message, system_message, temperature, top_p, max_tokens)
|
| 39 |
|
| 40 |
# ヒストリに追加
|
| 41 |
-
history.append(
|
| 42 |
-
history.append(
|
| 43 |
|
| 44 |
return history, history
|
| 45 |
|
|
@@ -57,4 +57,4 @@ demo = gr.ChatInterface(
|
|
| 57 |
)
|
| 58 |
|
| 59 |
# インターフェースの起動
|
| 60 |
-
demo.launch()
|
|
|
|
| 38 |
response = get_response(message, system_message, temperature, top_p, max_tokens)
|
| 39 |
|
| 40 |
# ヒストリに追加
|
| 41 |
+
history.append((message, "あなた"))
|
| 42 |
+
history.append((response, "チャットボット"))
|
| 43 |
|
| 44 |
return history, history
|
| 45 |
|
|
|
|
| 57 |
)
|
| 58 |
|
| 59 |
# インターフェースの起動
|
| 60 |
+
demo.launch(share=True)
|