Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,13 +76,13 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
| 76 |
input1up = gr.update(label = languagedict[language]['whatcanidolabel'])
|
| 77 |
input2up = gr.update(label = languagedict[language]['interviewquestionslabel'])
|
| 78 |
input3up = gr.update(label = languagedict[language]['helplabel'])
|
| 79 |
-
chatbot1up = [[None,languagedict[language]['whatcanidofirst']]]
|
| 80 |
-
state1up = [[{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict[language]['whatcanidofirst']}]]
|
| 81 |
-
chatbot2up = [[None,languagedict[language]['interviewquestionsfirst']]]
|
| 82 |
-
state2up = [[{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict[language]['interviewquestionsfirst']}]]
|
| 83 |
-
chatbot3up = [[None,languagedict[language]['whatcanidofirst']]]
|
| 84 |
complement = f"To answer, use primarily the information indicated here:\n{instructions}"
|
| 85 |
-
state3up = [[{"role": "system", "content": themehelp + f"\n{complement}"},{"role": "assistant", "content": languagedict[language]['helpfirst']}]]
|
| 86 |
return titleup, input1up, input2up, input3up, chatbot1up, chatbot2up, chatbot3up, state1up, state2up, state3up
|
| 87 |
|
| 88 |
languageoptions = ["English", "廣東話"]
|
|
|
|
| 76 |
input1up = gr.update(label = languagedict[language]['whatcanidolabel'])
|
| 77 |
input2up = gr.update(label = languagedict[language]['interviewquestionslabel'])
|
| 78 |
input3up = gr.update(label = languagedict[language]['helplabel'])
|
| 79 |
+
chatbot1up = gr.update(value = [[None,languagedict[language]['whatcanidofirst']]])
|
| 80 |
+
state1up = gr.update(value = [[{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict[language]['whatcanidofirst']}]])
|
| 81 |
+
chatbot2up = gr.update(value = [[None,languagedict[language]['interviewquestionsfirst']]])
|
| 82 |
+
state2up = gr.update(value = [[{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict[language]['interviewquestionsfirst']}]])
|
| 83 |
+
chatbot3up = gr.update(value = [[None,languagedict[language]['whatcanidofirst']]])
|
| 84 |
complement = f"To answer, use primarily the information indicated here:\n{instructions}"
|
| 85 |
+
state3up = gr.update(value = [[{"role": "system", "content": themehelp + f"\n{complement}"},{"role": "assistant", "content": languagedict[language]['helpfirst']}]])
|
| 86 |
return titleup, input1up, input2up, input3up, chatbot1up, chatbot2up, chatbot3up, state1up, state2up, state3up
|
| 87 |
|
| 88 |
languageoptions = ["English", "廣東話"]
|