Spaces:
Running
Running
Update chat_app_remote.py
Browse files- chat_app_remote.py +3 -1
chat_app_remote.py
CHANGED
@@ -76,7 +76,7 @@ def handle_audio(audio_data, history, session_id):
|
|
76 |
def respond(message, chat_history, session_id):
|
77 |
|
78 |
if not session_id:
|
79 |
-
return "", chat_history, None, session_id, "Please set a session ID first in the Options tab
|
80 |
return chat_function(message, chat_history, session_id)
|
81 |
|
82 |
def create_frontend_demo():
|
@@ -87,6 +87,8 @@ def create_frontend_demo():
|
|
87 |
with gr.Tabs() as tabs:
|
88 |
with gr.Tab("Chat"):
|
89 |
# Chat interface elements
|
|
|
|
|
90 |
session_display = gr.Markdown("Current Session ID: None", label="Session ID")
|
91 |
chatbot = gr.Chatbot(
|
92 |
label="Conversation History",
|
|
|
76 |
def respond(message, chat_history, session_id):
|
77 |
|
78 |
if not session_id:
|
79 |
+
return "", chat_history, None, session_id, "Please set a session ID first in the Options tab | オプションタブに移動して、セッションIDを設定してください。"
|
80 |
return chat_function(message, chat_history, session_id)
|
81 |
|
82 |
def create_frontend_demo():
|
|
|
87 |
with gr.Tabs() as tabs:
|
88 |
with gr.Tab("Chat"):
|
89 |
# Chat interface elements
|
90 |
+
|
91 |
+
gr.Markdown("Please set a session ID first in the Options tab <br> オプションタブに移動して、セッションIDを設定してください。)
|
92 |
session_display = gr.Markdown("Current Session ID: None", label="Session ID")
|
93 |
chatbot = gr.Chatbot(
|
94 |
label="Conversation History",
|