remove heard button
Browse files
app.py
CHANGED
@@ -25,9 +25,9 @@ def build_demo():
|
|
25 |
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
-
|
29 |
-
|
30 |
-
)
|
31 |
audio = gr.Audio(show_download_button = False)
|
32 |
|
33 |
with gr.Row():
|
@@ -38,24 +38,24 @@ def build_demo():
|
|
38 |
|
39 |
|
40 |
|
41 |
-
btn_list = [fake_btn, real_btn
|
42 |
|
43 |
|
44 |
fake_btn.click(
|
45 |
fake_last_response,
|
46 |
inputs=[state],
|
47 |
-
outputs=[fake_btn, real_btn,
|
48 |
)
|
49 |
|
50 |
real_btn.click(
|
51 |
real_last_response,
|
52 |
inputs=[state],
|
53 |
-
outputs=[fake_btn, real_btn,
|
54 |
)
|
55 |
|
56 |
-
heard_btn.click(generate_songs, state, [state, audio, model_selector])
|
57 |
|
58 |
-
new_round_button = gr.Button("New Round")
|
59 |
new_round_button.click(generate_songs, state, [state, audio, model_selector]).then(
|
60 |
enable_buttons_side_by_side,
|
61 |
inputs=None,
|
|
|
25 |
|
26 |
with gr.Row():
|
27 |
with gr.Column():
|
28 |
+
# heard_btn = gr.Button(
|
29 |
+
# value="🚩 Heard this song before", visible=False, interactive=False
|
30 |
+
# )
|
31 |
audio = gr.Audio(show_download_button = False)
|
32 |
|
33 |
with gr.Row():
|
|
|
38 |
|
39 |
|
40 |
|
41 |
+
btn_list = [fake_btn, real_btn]
|
42 |
|
43 |
|
44 |
fake_btn.click(
|
45 |
fake_last_response,
|
46 |
inputs=[state],
|
47 |
+
outputs=[fake_btn, real_btn, model_selector]
|
48 |
)
|
49 |
|
50 |
real_btn.click(
|
51 |
real_last_response,
|
52 |
inputs=[state],
|
53 |
+
outputs=[fake_btn, real_btn, model_selector]
|
54 |
)
|
55 |
|
56 |
+
# heard_btn.click(generate_songs, state, [state, audio, model_selector])
|
57 |
|
58 |
+
new_round_button = gr.Button("🎵 New Round 🎵")
|
59 |
new_round_button.click(generate_songs, state, [state, audio, model_selector]).then(
|
60 |
enable_buttons_side_by_side,
|
61 |
inputs=None,
|