Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -76,11 +76,11 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
| 76 |
input1up = gr.update(value = languagedict[language]['whatcanidolabel'])
|
| 77 |
input2up = gr.update(value = languagedict[language]['interviewquestionslabel'])
|
| 78 |
input3up = gr.update(value = languagedict[language]['helplabel'])
|
| 79 |
-
chatbot1up = [None,languagedict['English']['whatcanidofirst']]
|
| 80 |
state1up = [{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict[language]['whatcanidofirst']}]
|
| 81 |
-
chatbot2up = [None,languagedict['English']['interviewquestionsfirst']]
|
| 82 |
state2up = [{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict[language]['interviewquestionsfirst']}]
|
| 83 |
-
chatbot3up = [None,languagedict['English']['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
|
|
|
|
| 76 |
input1up = gr.update(value = languagedict[language]['whatcanidolabel'])
|
| 77 |
input2up = gr.update(value = languagedict[language]['interviewquestionslabel'])
|
| 78 |
input3up = gr.update(value = languagedict[language]['helplabel'])
|
| 79 |
+
chatbot1up = [[None,languagedict['English']['whatcanidofirst']]]
|
| 80 |
state1up = [{"role": "system", "content": themewhatcanido},{"role": "assistant", "content": languagedict[language]['whatcanidofirst']}]
|
| 81 |
+
chatbot2up = [[None,languagedict['English']['interviewquestionsfirst']]]
|
| 82 |
state2up = [{"role": "system", "content": themeinterviewquestions},{"role": "assistant", "content": languagedict[language]['interviewquestionsfirst']}]
|
| 83 |
+
chatbot3up = [[None,languagedict['English']['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
|