Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,7 +80,7 @@ if st.button("Translate"):
|
|
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:
|
|
|
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, width=150) # Adjust the size as per preference
|
84 |
else:
|
85 |
st.error(japanese_text) # Display error message if API call fails
|
86 |
else:
|