Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -91,7 +91,7 @@ def chat_inf(system_prompt,prompt,history,memory,client_choice,seed,temp,tokens,
|
|
91 |
output += response.token.text
|
92 |
yield [(prompt,output)],memory
|
93 |
if(translate_fa):
|
94 |
-
output = GoogleTranslator(source='auto', target='
|
95 |
history.append((prompt,output))
|
96 |
memory.append((prompt,output))
|
97 |
yield history,memory
|
|
|
91 |
output += response.token.text
|
92 |
yield [(prompt,output)],memory
|
93 |
if(translate_fa):
|
94 |
+
output = GoogleTranslator(source='auto', target='fa').translate(output)
|
95 |
history.append((prompt,output))
|
96 |
memory.append((prompt,output))
|
97 |
yield history,memory
|