Update app.py
Browse files
app.py
CHANGED
|
@@ -80,6 +80,7 @@ def hf_inference_translate(prompt="Wie kann ich Ihnen helfen?", target_language
|
|
| 80 |
print(prompt)
|
| 81 |
# Call the respective API methods
|
| 82 |
# Get the input language
|
|
|
|
| 83 |
chat_response_languagedetected = api.language_detection(text)
|
| 84 |
print(chat_response_languagedetected[0][0])
|
| 85 |
# Translate based on input prompt, detected language and chosen target language
|
|
|
|
| 80 |
print(prompt)
|
| 81 |
# Call the respective API methods
|
| 82 |
# Get the input language
|
| 83 |
+
chat_response_languagedetected = ""
|
| 84 |
chat_response_languagedetected = api.language_detection(text)
|
| 85 |
print(chat_response_languagedetected[0][0])
|
| 86 |
# Translate based on input prompt, detected language and chosen target language
|