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