Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,6 +33,7 @@ with gr.Blocks(theme=gr.themes.Glass()) as demo:
|
|
| 33 |
stop=None
|
| 34 |
)
|
| 35 |
result = response['choices'][0]['message']['content']
|
|
|
|
| 36 |
|
| 37 |
def init_history(language, messages_history1, messages_history2, messages_history3): #Reinitialize the state file
|
| 38 |
messages_history1 = [[None,languagedict[language]['whatcanidofirst']]]
|
|
|
|
| 33 |
stop=None
|
| 34 |
)
|
| 35 |
result = response['choices'][0]['message']['content']
|
| 36 |
+
return result
|
| 37 |
|
| 38 |
def init_history(language, messages_history1, messages_history2, messages_history3): #Reinitialize the state file
|
| 39 |
messages_history1 = [[None,languagedict[language]['whatcanidofirst']]]
|