Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -141,15 +141,18 @@ def identity(x, state):
|
|
141 |
|
142 |
with gr.Blocks() as demo:
|
143 |
gr.Markdown("Midi Generation")
|
144 |
-
with gr.Tab("Token generation"):
|
145 |
-
|
146 |
-
|
147 |
with gr.Tab("Audio generation"):
|
148 |
audio_output = gr.Audio()
|
149 |
number1 = gr.Slider(1, 100, value=25, label="Inst number", step=1, info="Choose between 1 and 100")
|
150 |
number2 = gr.Slider(1, 100, value=40, label="Note number", step=1, info="Choose between 1 and 100")
|
151 |
number3 = gr.Slider(60, 140, value=120, label="BPM", step=5, info="Choose between 60 and 140")
|
152 |
audio_button = gr.Button("generate audio")
|
|
|
|
|
|
|
153 |
|
154 |
text_button.click(generation, inputs=None, outputs=text_output)
|
155 |
audio_button.click(process, inputs=[number1, number2, number3], outputs=audio_output)
|
|
|
141 |
|
142 |
with gr.Blocks() as demo:
|
143 |
gr.Markdown("Midi Generation")
|
144 |
+
#with gr.Tab("Token generation"):
|
145 |
+
# text_output = gr.Textbox()
|
146 |
+
# text_button = gr.Button("show generated tokens")
|
147 |
with gr.Tab("Audio generation"):
|
148 |
audio_output = gr.Audio()
|
149 |
number1 = gr.Slider(1, 100, value=25, label="Inst number", step=1, info="Choose between 1 and 100")
|
150 |
number2 = gr.Slider(1, 100, value=40, label="Note number", step=1, info="Choose between 1 and 100")
|
151 |
number3 = gr.Slider(60, 140, value=120, label="BPM", step=5, info="Choose between 60 and 140")
|
152 |
audio_button = gr.Button("generate audio")
|
153 |
+
with gr.Tab("Token generation"):
|
154 |
+
text_output = gr.Textbox()
|
155 |
+
text_button = gr.Button("show generated tokens")
|
156 |
|
157 |
text_button.click(generation, inputs=None, outputs=text_output)
|
158 |
audio_button.click(process, inputs=[number1, number2, number3], outputs=audio_output)
|