Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -342,7 +342,8 @@ response = chain.invoke({"text": \
|
|
342 |
# Print the Response.
|
343 |
# print(response.content)
|
344 |
st.write("ORIGINELE TEKST : ", text_to_transcribe)
|
345 |
-
if info.language != "nn" or info.language_probability > 0.7:
|
|
|
346 |
st.write("NEDERLANDSE VERTALING HIERVAN: ", response.content)
|
347 |
else :
|
348 |
# st.write("info.language: ", info.language)
|
|
|
342 |
# Print the Response.
|
343 |
# print(response.content)
|
344 |
st.write("ORIGINELE TEKST : ", text_to_transcribe)
|
345 |
+
# if info.language != "nn" or info.language_probability > 0.7:
|
346 |
+
if info.language_probability > 0.7:
|
347 |
st.write("NEDERLANDSE VERTALING HIERVAN: ", response.content)
|
348 |
else :
|
349 |
# st.write("info.language: ", info.language)
|