Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,6 +83,12 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
| 83 |
chatbot3up = [None,languagedict['English']['whatcanidofirst']]
|
| 84 |
state3up = [{"role": "system", "content": themehelp},{"role": "assistant", "content": languagedict[language]['helpfirst']}]
|
| 85 |
return titleup, input1up, input2up, input3up, chatbot1up, chatbot2up, chatbot3up, state1up, state2up, state3up
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
# REFERENCES
|
| 88 |
languageoptions = ["English", "廣東話"]
|
|
@@ -157,11 +163,7 @@ IMPORTANT: write in {language}, in the style of a native inhabitant from Kowloon
|
|
| 157 |
"""
|
| 158 |
url = "https://cdn.discordapp.com/attachments/1006389042608349264/1114545184080928849/Guiyom_cartoon_style_-_working_poors_in_Hong_Kong_seeking_advic_70131de8-1a0a-4f04-ac49-b99d7e020414.png"
|
| 159 |
|
| 160 |
-
#
|
| 161 |
-
mode = gr.Textbox(value = "mode1", visible = False)
|
| 162 |
-
title = gr.Markdown(value=languagedict['English']['welcome'])
|
| 163 |
-
visual = gr.Image(value = url)
|
| 164 |
-
language = gr.Dropdown(languageoptions , value= "English", label="Choose language / 選擇語言")
|
| 165 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}"):
|
| 166 |
chatbot1 = gr.Chatbot([[None,languagedict['English']['whatcanidofirst']]])
|
| 167 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|
|
|
|
| 83 |
chatbot3up = [None,languagedict['English']['whatcanidofirst']]
|
| 84 |
state3up = [{"role": "system", "content": themehelp},{"role": "assistant", "content": languagedict[language]['helpfirst']}]
|
| 85 |
return titleup, input1up, input2up, input3up, chatbot1up, chatbot2up, chatbot3up, state1up, state2up, state3up
|
| 86 |
+
|
| 87 |
+
# INTERFACE
|
| 88 |
+
mode = gr.Textbox(value = "mode1", visible = False)
|
| 89 |
+
title = gr.Markdown(value=languagedict['English']['welcome'])
|
| 90 |
+
visual = gr.Image(value = url)
|
| 91 |
+
language = gr.Dropdown(languageoptions , value= "English", label="Choose language / 選擇語言")
|
| 92 |
|
| 93 |
# REFERENCES
|
| 94 |
languageoptions = ["English", "廣東話"]
|
|
|
|
| 163 |
"""
|
| 164 |
url = "https://cdn.discordapp.com/attachments/1006389042608349264/1114545184080928849/Guiyom_cartoon_style_-_working_poors_in_Hong_Kong_seeking_advic_70131de8-1a0a-4f04-ac49-b99d7e020414.png"
|
| 165 |
|
| 166 |
+
#INTERFACE
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
with gr.Tab(f"{languagedict['English']['whatcanido']} / {languagedict['廣東話']['whatcanido']}"):
|
| 168 |
chatbot1 = gr.Chatbot([[None,languagedict['English']['whatcanidofirst']]])
|
| 169 |
input1 = gr.Textbox(label = languagedict['English']['whatcanidolabel'])
|