Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,6 +60,10 @@ def translate_to_japanese(api_key, text):
|
|
60 |
st.title("English to Japanese Translator with Pronunciation")
|
61 |
st.markdown("Translate English text into Japanese and get its pronunciation (Romaji) using OpenAI's API.")
|
62 |
|
|
|
|
|
|
|
|
|
63 |
# Access the API key from Hugging Face Secrets
|
64 |
api_key = os.getenv("OPENAI_API_KEY")
|
65 |
|
|
|
60 |
st.title("English to Japanese Translator with Pronunciation")
|
61 |
st.markdown("Translate English text into Japanese and get its pronunciation (Romaji) using OpenAI's API.")
|
62 |
|
63 |
+
|
64 |
+
translateimg = Image.open("Untitled.png") # Ensure the file is in the correct directory
|
65 |
+
st.image(translateimg, width=200) # Adjust the size as per preference
|
66 |
+
|
67 |
# Access the API key from Hugging Face Secrets
|
68 |
api_key = os.getenv("OPENAI_API_KEY")
|
69 |
|