Update app.py
Browse files
app.py
CHANGED
|
@@ -328,19 +328,15 @@ def save_transcribe_fix(audio_file, prompt_type):
|
|
| 328 |
# Create the Gradio interface using Blocks
|
| 329 |
# -------------------------------------------------
|
| 330 |
# Update Gradio UI with a new button
|
|
|
|
| 331 |
with gr.Blocks(title="Audio Recorder, Transcriber, and Text Generator") as demo:
|
| 332 |
gr.Markdown("# Audio Recorder, Transcriber, and Text Generator")
|
| 333 |
gr.Markdown("Enter the correct password to access the application.")
|
| 334 |
|
| 335 |
-
|
| 336 |
-
|
| 337 |
-
|
| 338 |
-
|
| 339 |
-
# Wrap login UI in a container to hide it after login
|
| 340 |
-
with gr.Column() as login_container:
|
| 341 |
-
password_input.render()
|
| 342 |
-
login_button.render()
|
| 343 |
-
login_message.render()
|
| 344 |
|
| 345 |
with gr.Column(visible=False) as main_interface:
|
| 346 |
gr.Markdown("Record audio, transcribe it, or enter text manually, and optionally generate text based on the input.")
|
|
|
|
| 328 |
# Create the Gradio interface using Blocks
|
| 329 |
# -------------------------------------------------
|
| 330 |
# Update Gradio UI with a new button
|
| 331 |
+
# Update Gradio UI with a new button
|
| 332 |
with gr.Blocks(title="Audio Recorder, Transcriber, and Text Generator") as demo:
|
| 333 |
gr.Markdown("# Audio Recorder, Transcriber, and Text Generator")
|
| 334 |
gr.Markdown("Enter the correct password to access the application.")
|
| 335 |
|
| 336 |
+
with gr.Group() as login_container: # Group instead of Column
|
| 337 |
+
password_input = gr.Textbox(type="password", label="Enter Password")
|
| 338 |
+
login_button = gr.Button("Login")
|
| 339 |
+
login_message = gr.Markdown()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 340 |
|
| 341 |
with gr.Column(visible=False) as main_interface:
|
| 342 |
gr.Markdown("Record audio, transcribe it, or enter text manually, and optionally generate text based on the input.")
|