Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ else:
|
|
| 32 |
try:
|
| 33 |
# Use the model's generate_content method for translation
|
| 34 |
# The prompt needs to instruct the model to perform translation
|
| 35 |
-
prompt = f"Translate the following text into
|
| 36 |
response = model.generate_content(prompt)
|
| 37 |
|
| 38 |
# Display the translated text
|
|
|
|
| 32 |
try:
|
| 33 |
# Use the model's generate_content method for translation
|
| 34 |
# The prompt needs to instruct the model to perform translation
|
| 35 |
+
prompt = f"Translate the following text into Urdu: '{text_input}'"
|
| 36 |
response = model.generate_content(prompt)
|
| 37 |
|
| 38 |
# Display the translated text
|