Update app.py
Browse files
app.py
CHANGED
@@ -116,10 +116,7 @@ with gr.Blocks(gr.themes.Origin()) as demo:
|
|
116 |
user_input = gr.TextArea(label="Your Question", value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
|
117 |
output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
118 |
gr.Interface(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, live=False)
|
119 |
-
|
120 |
-
# clear_button = gr.ClearButton([user_input, output_audio], value="Clear")
|
121 |
-
# translate_btn = gr.Button("Submit", variant="primary")
|
122 |
-
# translate_btn.click(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, api_name="translate")
|
123 |
|
124 |
if __name__ == "__main__":
|
125 |
demo.queue(max_size=200, api_open=False).launch()
|
|
|
116 |
user_input = gr.TextArea(label="Your Question", value="If there is any spell to encapsulate you as a piece of the cog, where Hermione is to everyone's favorite magical trio, it has to be...?")
|
117 |
output_audio = gr.Audio(label="Hermione's Response", type="filepath", interactive=False, autoplay=True, elem_classes="audio")
|
118 |
gr.Interface(fn=generate1, inputs=[user_voice, user_input], outputs=output_audio, live=False)
|
119 |
+
|
|
|
|
|
|
|
120 |
|
121 |
if __name__ == "__main__":
|
122 |
demo.queue(max_size=200, api_open=False).launch()
|