Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -58,7 +58,7 @@ if text1:
|
|
| 58 |
|
| 59 |
|
| 60 |
if text2:
|
| 61 |
-
text_translate = translator(text2)
|
| 62 |
|
| 63 |
prompt = f"""
|
| 64 |
From this information, infer two possible conclusions explained in a way that a 10-year-old child can understand.\n
|
|
|
|
| 58 |
|
| 59 |
|
| 60 |
if text2:
|
| 61 |
+
text_translate = translator(text2)[0]['translation_text']
|
| 62 |
|
| 63 |
prompt = f"""
|
| 64 |
From this information, infer two possible conclusions explained in a way that a 10-year-old child can understand.\n
|