Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -79,8 +79,8 @@ if st.button("Translate"):
|
|
| 79 |
st.markdown("### Translation Result:")
|
| 80 |
st.write(f"**Japanese Output:** {japanese_text}")
|
| 81 |
st.write(f"**Pronunciation:** {pronunciation}")
|
| 82 |
-
|
| 83 |
-
|
| 84 |
else:
|
| 85 |
st.error(japanese_text) # Display error message if API call fails
|
| 86 |
else:
|
|
|
|
| 79 |
st.markdown("### Translation Result:")
|
| 80 |
st.write(f"**Japanese Output:** {japanese_text}")
|
| 81 |
st.write(f"**Pronunciation:** {pronunciation}")
|
| 82 |
+
translateimg2 = Image.open("v3.png") # Ensure the file is in the correct directory
|
| 83 |
+
st.image(translateimg2) # Adjust the size as per preference
|
| 84 |
else:
|
| 85 |
st.error(japanese_text) # Display error message if API call fails
|
| 86 |
else:
|