Spaces:
Sleeping
Sleeping
Update app.py
Browse filesremoved audio section
app.py
CHANGED
@@ -56,14 +56,15 @@ with gr.Blocks(theme="gradio/monochrome", title="Dorj Assistant") as demo:
|
|
56 |
with gr.Column():
|
57 |
output_audio = gr.Audio(label="DorjGPT", type="filepath",
|
58 |
interactive=False,
|
|
|
59 |
autoplay=True,
|
60 |
elem_classes="audio")
|
61 |
|
62 |
-
user_input = gr.Textbox(label="
|
63 |
|
64 |
with gr.Tab():
|
65 |
with gr.Row():
|
66 |
-
translate_btn = gr.Button("
|
67 |
translate_btn.click(fn=generate1, inputs=user_input,
|
68 |
outputs=output_audio, api_name="translate")
|
69 |
|
|
|
56 |
with gr.Column():
|
57 |
output_audio = gr.Audio(label="DorjGPT", type="filepath",
|
58 |
interactive=False,
|
59 |
+
visible=False,
|
60 |
autoplay=True,
|
61 |
elem_classes="audio")
|
62 |
|
63 |
+
user_input = gr.Textbox(label="Question", value="What is this application?")
|
64 |
|
65 |
with gr.Tab():
|
66 |
with gr.Row():
|
67 |
+
translate_btn = gr.Button("Submit")
|
68 |
translate_btn.click(fn=generate1, inputs=user_input,
|
69 |
outputs=output_audio, api_name="translate")
|
70 |
|