Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -104,10 +104,12 @@ with gr.Blocks() as demo:
|
|
104 |
piano_roll_box = gr.Image()
|
105 |
example_box = gr.Examples(
|
106 |
[
|
|
|
107 |
["Chopin"], ["Bach"], ["Beethoven"], ["Debussy"], ["Nocturne"], ["Clair De Lune"], ["Guitar"], ["Boogie Woogie"],
|
108 |
-
["Fugue I in C major, BWV 846"], ["Beethoven Symphony No. 7 (2nd movement) Piano solo"],
|
109 |
],
|
110 |
inputs=prefix_box,
|
|
|
111 |
)
|
112 |
|
113 |
def user_fn(user_message, history: list):
|
@@ -197,7 +199,4 @@ with gr.Blocks() as demo:
|
|
197 |
|
198 |
get_midi_btn.click(get_midi_fn, inputs=chatbot_box, outputs=[midi_box, piano_roll_box], queue=False)
|
199 |
|
200 |
-
|
201 |
-
print(gr.__version__)
|
202 |
-
|
203 |
-
demo.launch(show_api=False)
|
|
|
104 |
piano_roll_box = gr.Image()
|
105 |
example_box = gr.Examples(
|
106 |
[
|
107 |
+
[example_prefix],
|
108 |
["Chopin"], ["Bach"], ["Beethoven"], ["Debussy"], ["Nocturne"], ["Clair De Lune"], ["Guitar"], ["Boogie Woogie"],
|
109 |
+
["Fugue I in C major, BWV 846"], ["Beethoven Symphony No. 7 (2nd movement) Piano solo"],
|
110 |
],
|
111 |
inputs=prefix_box,
|
112 |
+
examples_per_page=9999,
|
113 |
)
|
114 |
|
115 |
def user_fn(user_message, history: list):
|
|
|
199 |
|
200 |
get_midi_btn.click(get_midi_fn, inputs=chatbot_box, outputs=[midi_box, piano_roll_box], queue=False)
|
201 |
|
202 |
+
demo.launch()
|
|
|
|
|
|