Spaces:
Runtime error
Runtime error
fixed "\" in the image search
Browse files
app.py
CHANGED
@@ -167,7 +167,7 @@ if st.button("Run"):
|
|
167 |
st.write(translate(result, lang, "id").replace("\n", " \n"))
|
168 |
|
169 |
image_cat = "https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif"
|
170 |
-
image = get_image(translation)
|
171 |
if image is not "":
|
172 |
st.image(image, width=400)
|
173 |
else:
|
|
|
167 |
st.write(translate(result, lang, "id").replace("\n", " \n"))
|
168 |
|
169 |
image_cat = "https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif"
|
170 |
+
image = get_image(translation.replace("\"", "'"))
|
171 |
if image is not "":
|
172 |
st.image(image, width=400)
|
173 |
else:
|