cahya commited on
Commit
956c93c
1 Parent(s): d38538c

fixed "\" in the image search

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