Chris4K commited on
Commit
2f85679
·
1 Parent(s): 8ee4722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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