Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,6 +21,6 @@ def run_generate(bad_words):
|
|
21 |
print(bad_word_ids)
|
22 |
return bad_word_ids
|
23 |
|
24 |
-
if
|
25 |
translated_text = run_generate(bad_words)
|
26 |
st.write(translated_text if translated_text else "No translation found")
|
|
|
21 |
print(bad_word_ids)
|
22 |
return bad_word_ids
|
23 |
|
24 |
+
if bad_words:
|
25 |
translated_text = run_generate(bad_words)
|
26 |
st.write(translated_text if translated_text else "No translation found")
|