Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -54,7 +54,7 @@ def user_input(user_question):
|
|
| 54 |
|
| 55 |
# Create translation model
|
| 56 |
translate = Translation()
|
| 57 |
-
translation = translate(response["output_text"], "fa")
|
| 58 |
|
| 59 |
st.write("Reply: ", translation)
|
| 60 |
|
|
|
|
| 54 |
|
| 55 |
# Create translation model
|
| 56 |
translate = Translation()
|
| 57 |
+
translation = translate(response["output_text"], target="fa", source="en")
|
| 58 |
|
| 59 |
st.write("Reply: ", translation)
|
| 60 |
|