Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,9 @@ with gr.Blocks(theme=gr.themes.Soft()) as app:
|
|
| 119 |
api_key = gr.Textbox(label="🔑 Gemini API Key", type="password", placeholder="Enter your Gemini API key")
|
| 120 |
english_text = gr.Textbox(label="📝 Enter English Text", lines=4, placeholder="Type something in English...")
|
| 121 |
|
| 122 |
-
translate_button = gr.Button("Translate to French 🚀")
|
| 123 |
|
|
|
|
| 124 |
translation_output = gr.Textbox(label="📘 French Translation")
|
| 125 |
pronunciation_output = gr.Textbox(label="🔤 Pronunciation (IPA)")
|
| 126 |
audio_output = gr.Audio(label="🔊 Listen to Pronunciation", type="filepath")
|
|
|
|
| 119 |
api_key = gr.Textbox(label="🔑 Gemini API Key", type="password", placeholder="Enter your Gemini API key")
|
| 120 |
english_text = gr.Textbox(label="📝 Enter English Text", lines=4, placeholder="Type something in English...")
|
| 121 |
|
| 122 |
+
translate_button = gr.Button("Translate to French 🚀")
|
| 123 |
|
| 124 |
+
status_label = gr.Label(label="Status")
|
| 125 |
translation_output = gr.Textbox(label="📘 French Translation")
|
| 126 |
pronunciation_output = gr.Textbox(label="🔤 Pronunciation (IPA)")
|
| 127 |
audio_output = gr.Audio(label="🔊 Listen to Pronunciation", type="filepath")
|