Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -112,15 +112,15 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
| 112 |
title = gr.Markdown(value=languagedict['English']['welcome'])
|
| 113 |
language = gr.Dropdown(languageoptions , value= "English", label="Choose language / 選擇語言")
|
| 114 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}", id = 1):
|
| 115 |
-
chatbot1 = gr.Chatbot()
|
| 116 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|
| 117 |
state1 = gr.State([])
|
| 118 |
with gr.Tab(f"{languagedict['English']['interviewquestions']} / {languagedict['廣東話']['interviewquestions']}", id = 2):
|
| 119 |
-
chatbot2 = gr.Chatbot()
|
| 120 |
input2 = gr.Textbox(label = languagedict['English']['interviewquestionslabel'])
|
| 121 |
state2 = gr.State([])
|
| 122 |
with gr.Tab(f"{languagedict['English']['help']} / {languagedict['廣東話']['help']}", id = 3):
|
| 123 |
-
chatbot3 = gr.Chatbot()
|
| 124 |
input3 = gr.Textbox(label = languagedict['English']['helplabel'])
|
| 125 |
state3 = gr.State([])
|
| 126 |
with gr.Tab("MIW"):
|
|
|
|
| 112 |
title = gr.Markdown(value=languagedict['English']['welcome'])
|
| 113 |
language = gr.Dropdown(languageoptions , value= "English", label="Choose language / 選擇語言")
|
| 114 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}", id = 1):
|
| 115 |
+
chatbot1 = gr.Chatbot([None,languagedict['English']['whatcanidofirst']])
|
| 116 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|
| 117 |
state1 = gr.State([])
|
| 118 |
with gr.Tab(f"{languagedict['English']['interviewquestions']} / {languagedict['廣東話']['interviewquestions']}", id = 2):
|
| 119 |
+
chatbot2 = gr.Chatbot([None,languagedict['English']['interviewquestionsfirst']])
|
| 120 |
input2 = gr.Textbox(label = languagedict['English']['interviewquestionslabel'])
|
| 121 |
state2 = gr.State([])
|
| 122 |
with gr.Tab(f"{languagedict['English']['help']} / {languagedict['廣東話']['help']}", id = 3):
|
| 123 |
+
chatbot3 = gr.Chatbot([None,languagedict['English']['helpfirst']])
|
| 124 |
input3 = gr.Textbox(label = languagedict['English']['helplabel'])
|
| 125 |
state3 = gr.State([])
|
| 126 |
with gr.Tab("MIW"):
|