Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,15 +154,15 @@ IMPORTANT: write in {language}, in the style of a native inhabitant from Kowloon
|
|
| 154 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}"):
|
| 155 |
chatbot1 = gr.Chatbot([[None,languagedict['English']['whatcanidofirst']]])
|
| 156 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|
| 157 |
-
state1 = gr.State([{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict[
|
| 158 |
with gr.Tab(f"{languagedict['English']['interviewquestions']} / {languagedict['廣東話']['interviewquestions']}"):
|
| 159 |
chatbot2 = gr.Chatbot([[None,languagedict['English']['interviewquestionsfirst']]])
|
| 160 |
input2 = gr.Textbox(label = languagedict['English']['interviewquestionslabel'])
|
| 161 |
-
state2 = gr.State([{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict[
|
| 162 |
with gr.Tab(f"{languagedict['English']['help']} / {languagedict['廣東話']['help']}"):
|
| 163 |
chatbot3 = gr.Chatbot([[None,languagedict['English']['helpfirst']]])
|
| 164 |
input3 = gr.Textbox(label = languagedict['English']['helplabel'])
|
| 165 |
-
state3 = gr.State([{"role": "system", "content": themehelp},{"role": "assistant", "content": languagedict[
|
| 166 |
with gr.Tab("MIW"):
|
| 167 |
code = gr.Textbox(label = 'Code')
|
| 168 |
instructions = gr.Textbox(label = 'Instructions', lines=10, max_lines= 100, visible = False)
|
|
|
|
| 154 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}"):
|
| 155 |
chatbot1 = gr.Chatbot([[None,languagedict['English']['whatcanidofirst']]])
|
| 156 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|
| 157 |
+
state1 = gr.State([{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict['English']['whatcanidofirst']}])
|
| 158 |
with gr.Tab(f"{languagedict['English']['interviewquestions']} / {languagedict['廣東話']['interviewquestions']}"):
|
| 159 |
chatbot2 = gr.Chatbot([[None,languagedict['English']['interviewquestionsfirst']]])
|
| 160 |
input2 = gr.Textbox(label = languagedict['English']['interviewquestionslabel'])
|
| 161 |
+
state2 = gr.State([{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict['English']['interviewquestionsfirst']}])
|
| 162 |
with gr.Tab(f"{languagedict['English']['help']} / {languagedict['廣東話']['help']}"):
|
| 163 |
chatbot3 = gr.Chatbot([[None,languagedict['English']['helpfirst']]])
|
| 164 |
input3 = gr.Textbox(label = languagedict['English']['helplabel'])
|
| 165 |
+
state3 = gr.State([{"role": "system", "content": themehelp},{"role": "assistant", "content": languagedict['English']['helpfirst']}])
|
| 166 |
with gr.Tab("MIW"):
|
| 167 |
code = gr.Textbox(label = 'Code')
|
| 168 |
instructions = gr.Textbox(label = 'Instructions', lines=10, max_lines= 100, visible = False)
|