Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,14 +69,17 @@ def transcribe_audio(audio_file, destination_language):
|
|
| 69 |
except Exception as e:
|
| 70 |
return f"Error during transcription: {str(e)}"
|
| 71 |
|
|
|
|
|
|
|
| 72 |
# Gradio interface
|
| 73 |
-
with gr.Blocks() as demo:
|
| 74 |
-
gr.
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
|
|
|
| 78 |
|
| 79 |
-
with gr.Tabs():
|
| 80 |
with gr.Tab("Text Translation"):
|
| 81 |
text_input = gr.Textbox(label="Input text to translate", lines=6)
|
| 82 |
language_dropdown = gr.Dropdown(
|
|
|
|
| 69 |
except Exception as e:
|
| 70 |
return f"Error during transcription: {str(e)}"
|
| 71 |
|
| 72 |
+
|
| 73 |
+
|
| 74 |
# Gradio interface
|
| 75 |
+
with gr.Blocks(css=".background {background: linear-gradient(to right, black, blue);}") as demo:
|
| 76 |
+
with gr.Row(elem_classes="background"):
|
| 77 |
+
gr.Markdown("# AI-Powered Language Translation Chatbot")
|
| 78 |
+
gr.Markdown(
|
| 79 |
+
"This bot allows you to translate English text to various languages or convert audio input into transcribed text and translate it into your desired language."
|
| 80 |
+
)
|
| 81 |
|
| 82 |
+
with gr.Tabs(elem_classes="background"):
|
| 83 |
with gr.Tab("Text Translation"):
|
| 84 |
text_input = gr.Textbox(label="Input text to translate", lines=6)
|
| 85 |
language_dropdown = gr.Dropdown(
|