Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -152,7 +152,7 @@ with gr.Blocks() as demo:
|
|
152 |
submit_event = submit_btn.click(user_fn, [prefix_box, chatbot_box], [prefix_box, chatbot_box], queue=False).then(
|
153 |
bot_fn, chatbot_box, chatbot_box
|
154 |
)
|
155 |
-
|
156 |
|
157 |
def get_audio_fn(history):
|
158 |
i = random.randint(0, 1000_000_000)
|
@@ -193,5 +193,7 @@ with gr.Blocks() as demo:
|
|
193 |
|
194 |
get_midi_btn.click(get_midi_fn, inputs=chatbot_box, outputs=[midi_box, piano_roll_box], queue=False)
|
195 |
|
|
|
|
|
196 |
|
197 |
-
demo.launch()
|
|
|
152 |
submit_event = submit_btn.click(user_fn, [prefix_box, chatbot_box], [prefix_box, chatbot_box], queue=False).then(
|
153 |
bot_fn, chatbot_box, chatbot_box
|
154 |
)
|
155 |
+
clear_btn.click(lambda: None, inputs=[], outputs=chatbot_box, cancels=[submit_event], queue=False)
|
156 |
|
157 |
def get_audio_fn(history):
|
158 |
i = random.randint(0, 1000_000_000)
|
|
|
193 |
|
194 |
get_midi_btn.click(get_midi_fn, inputs=chatbot_box, outputs=[midi_box, piano_roll_box], queue=False)
|
195 |
|
196 |
+
print()
|
197 |
+
print(gradio.__version__)
|
198 |
|
199 |
+
demo.launch(show_api=False)
|