Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -232,16 +232,20 @@ if __name__ == '__main__':
|
|
| 232 |
chatbot = gr.Chatbot(elem_id="chatbot", label="AudioGPT")
|
| 233 |
state = gr.State([])
|
| 234 |
with gr.Row(visible = False) as input_raws:
|
| 235 |
-
with gr.Column(scale=0.
|
| 236 |
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter, or upload an image").style(container=False)
|
| 237 |
with gr.Column(scale=0.15, min_width=0):
|
| 238 |
clear = gr.Button("Clear️")
|
| 239 |
with gr.Column(scale=0.15, min_width=0):
|
| 240 |
btn = gr.UploadButton("Upload", file_types=["image","audio"])
|
|
|
|
| 241 |
with gr.Column():
|
| 242 |
outaudio = gr.Audio(visible=False)
|
|
|
|
| 243 |
with gr.Column():
|
| 244 |
show_mel = gr.Image(type="filepath",tool='sketch',visible=False)
|
|
|
|
|
|
|
| 245 |
run_button = gr.Button("Predict Masked Place",visible=False)
|
| 246 |
gr.Examples(
|
| 247 |
examples=["Generate an audio of a dog barking",
|
|
|
|
| 232 |
chatbot = gr.Chatbot(elem_id="chatbot", label="AudioGPT")
|
| 233 |
state = gr.State([])
|
| 234 |
with gr.Row(visible = False) as input_raws:
|
| 235 |
+
with gr.Column(scale=0.7):
|
| 236 |
txt = gr.Textbox(show_label=False, placeholder="Enter text and press enter, or upload an image").style(container=False)
|
| 237 |
with gr.Column(scale=0.15, min_width=0):
|
| 238 |
clear = gr.Button("Clear️")
|
| 239 |
with gr.Column(scale=0.15, min_width=0):
|
| 240 |
btn = gr.UploadButton("Upload", file_types=["image","audio"])
|
| 241 |
+
with gr.Row():
|
| 242 |
with gr.Column():
|
| 243 |
outaudio = gr.Audio(visible=False)
|
| 244 |
+
with gr.Row():
|
| 245 |
with gr.Column():
|
| 246 |
show_mel = gr.Image(type="filepath",tool='sketch',visible=False)
|
| 247 |
+
with gr.Row():
|
| 248 |
+
with gr.Column():
|
| 249 |
run_button = gr.Button("Predict Masked Place",visible=False)
|
| 250 |
gr.Examples(
|
| 251 |
examples=["Generate an audio of a dog barking",
|