Spaces:
Runtime error
Runtime error
disabled the image for time being
Browse files
app.py
CHANGED
@@ -193,16 +193,7 @@ if st.button("Run"):
|
|
193 |
st.write(translation.replace("\n", " \n"))
|
194 |
else:
|
195 |
st.write(translate(result, lang, "id").replace("\n", " \n"))
|
196 |
-
|
197 |
-
# disabled for time being
|
198 |
-
image_cat = "https://media.giphy.com/media/vFKqnCdLPNOKc/giphy.gif"
|
199 |
-
image = get_image(translation.replace("\"", "'"))
|
200 |
-
if image is not "":
|
201 |
-
st.image(image, width=400)
|
202 |
-
else:
|
203 |
-
# display cat image if no image found
|
204 |
-
st.image(image_cat, width=400)
|
205 |
-
"""
|
206 |
|
207 |
# Reset state
|
208 |
session_state.prompt = None
|
|
|
193 |
st.write(translation.replace("\n", " \n"))
|
194 |
else:
|
195 |
st.write(translate(result, lang, "id").replace("\n", " \n"))
|
196 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
|
198 |
# Reset state
|
199 |
session_state.prompt = None
|