Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -101,9 +101,8 @@ async def generate3(prompt):
|
|
101 |
|
102 |
with gr.Blocks(css="style.css") as demo:
|
103 |
gr.Markdown(DESCRIPTION)
|
104 |
-
gr.Markdown(Fast)
|
105 |
with gr.Row():
|
106 |
-
user_input = gr.Textbox(label="Prompt")
|
107 |
input_text = gr.Textbox(label="Input Text", elem_id="important")
|
108 |
output_audio = gr.Audio(label="Audio", type="filepath",
|
109 |
interactive=False,
|
@@ -112,35 +111,9 @@ with gr.Blocks(css="style.css") as demo:
|
|
112 |
with gr.Row():
|
113 |
translate_btn = gr.Button("Response")
|
114 |
translate_btn.click(fn=generate1, inputs=user_input,
|
115 |
-
outputs=output_audio, api_name="translate")
|
116 |
-
|
117 |
-
gr.Markdown(Complex)
|
118 |
-
with gr.Row():
|
119 |
-
user_input = gr.Textbox(label="Prompt")
|
120 |
-
input_text = gr.Textbox(label="Input Text", elem_id="important")
|
121 |
-
output_audio = gr.Audio(label="Audio", type="filepath",
|
122 |
-
interactive=False,
|
123 |
-
autoplay=True,
|
124 |
-
elem_classes="audio")
|
125 |
-
with gr.Row():
|
126 |
-
translate_btn = gr.Button("Response")
|
127 |
-
translate_btn.click(fn=generate2, inputs=user_input,
|
128 |
-
outputs=output_audio, api_name="translate")
|
129 |
-
|
130 |
-
gr.Markdown(Detail)
|
131 |
-
with gr.Row():
|
132 |
-
user_input = gr.Textbox(label="Prompt")
|
133 |
-
input_text = gr.Textbox(label="Input Text", elem_id="important")
|
134 |
-
output_audio = gr.Audio(label="Audio", type="filepath",
|
135 |
-
interactive=False,
|
136 |
-
autoplay=True,
|
137 |
-
elem_classes="audio")
|
138 |
-
with gr.Row():
|
139 |
-
translate_btn = gr.Button("Response")
|
140 |
-
translate_btn.click(fn=generate3, inputs=user_input,
|
141 |
-
outputs=output_audio, api_name="translate")
|
142 |
|
143 |
-
|
144 |
|
145 |
if __name__ == "__main__":
|
146 |
-
demo.queue(max_size=20).launch()
|
|
|
101 |
|
102 |
with gr.Blocks(css="style.css") as demo:
|
103 |
gr.Markdown(DESCRIPTION)
|
|
|
104 |
with gr.Row():
|
105 |
+
user_input = gr.Textbox(label="Prompt", value="What is Wikipedia")
|
106 |
input_text = gr.Textbox(label="Input Text", elem_id="important")
|
107 |
output_audio = gr.Audio(label="Audio", type="filepath",
|
108 |
interactive=False,
|
|
|
111 |
with gr.Row():
|
112 |
translate_btn = gr.Button("Response")
|
113 |
translate_btn.click(fn=generate1, inputs=user_input,
|
114 |
+
outputs=output_audio, api_name="translate")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
|
116 |
+
gr.Markdown(MORE)
|
117 |
|
118 |
if __name__ == "__main__":
|
119 |
+
demo.queue(max_size=20).launch()
|