ajayarora1235
commited on
Commit
•
1b4968b
1
Parent(s):
72ca181
fix button typo
Browse files
app.py
CHANGED
@@ -51,14 +51,14 @@ with gr.Blocks(css=css) as demo:
|
|
51 |
songwriter_style = gr.Dropdown(label='Songwriter Style', value = "GPT 4o", choices=["GPT 4o", "d4vd (Indie Rock Ballad - Male)", "Lizzy McAlpine (Indie Pop Folk - Female)", "Phoebe Bridgers (Pop Sad Rock - Female)", "Daniel Caesar (R&B/Soul - Male)"], interactive=True)
|
52 |
|
53 |
instrumental_textbox = gr.TextArea(label="Song Structure", value="Verse 1: 4 measures\nChorus 1: 8 measures\nVerse 2: 8 measures\nChorus 2: 8 measures\nVerse 3: 8 measures\nChorus 3: 8 measures", visible=False, interactive=True, max_lines=3)
|
54 |
-
gr.Markdown("""<center><font size=4>Edit these to your liking and hit '
|
55 |
|
56 |
def open_accordion(x):
|
57 |
return gr.Accordion("Generated Song Details", open=True)
|
58 |
approve_button.click(open_accordion, inputs=[approve_button], outputs=[accordion])
|
59 |
|
60 |
with gr.Row():
|
61 |
-
continue_btn = gr.Button("
|
62 |
|
63 |
|
64 |
def clean_song_seed(song_seed):
|
@@ -71,7 +71,7 @@ with gr.Blocks(css=css) as demo:
|
|
71 |
def make_row_visible(x):
|
72 |
return gr.Row(visible=True), gr.Markdown("""<center><font size=4>Here it is! Hit 'Approve' to confirm this concept. Edit the concept directly or hit 'Try Again' to get another suggestion.</font></center>""", visible=False)
|
73 |
def enable_button(x):
|
74 |
-
return gr.Button("
|
75 |
generate_seed_button.click(make_row_visible, inputs=[generate_seed_button], outputs=[concept_row, concept_desc])
|
76 |
feeling_input.submit(make_row_visible, inputs=[generate_seed_button], outputs=[concept_row, concept_desc])
|
77 |
approve_button.click(enable_button, inputs=[approve_button], outputs=[continue_btn])
|
|
|
51 |
songwriter_style = gr.Dropdown(label='Songwriter Style', value = "GPT 4o", choices=["GPT 4o", "d4vd (Indie Rock Ballad - Male)", "Lizzy McAlpine (Indie Pop Folk - Female)", "Phoebe Bridgers (Pop Sad Rock - Female)", "Daniel Caesar (R&B/Soul - Male)"], interactive=True)
|
52 |
|
53 |
instrumental_textbox = gr.TextArea(label="Song Structure", value="Verse 1: 4 measures\nChorus 1: 8 measures\nVerse 2: 8 measures\nChorus 2: 8 measures\nVerse 3: 8 measures\nChorus 3: 8 measures", visible=False, interactive=True, max_lines=3)
|
54 |
+
gr.Markdown("""<center><font size=4>Edit these to your liking and hit 'Start Creating' to continue onto generation!</font></center>""")
|
55 |
|
56 |
def open_accordion(x):
|
57 |
return gr.Accordion("Generated Song Details", open=True)
|
58 |
approve_button.click(open_accordion, inputs=[approve_button], outputs=[accordion])
|
59 |
|
60 |
with gr.Row():
|
61 |
+
continue_btn = gr.Button("Start Creating", interactive=False)
|
62 |
|
63 |
|
64 |
def clean_song_seed(song_seed):
|
|
|
71 |
def make_row_visible(x):
|
72 |
return gr.Row(visible=True), gr.Markdown("""<center><font size=4>Here it is! Hit 'Approve' to confirm this concept. Edit the concept directly or hit 'Try Again' to get another suggestion.</font></center>""", visible=False)
|
73 |
def enable_button(x):
|
74 |
+
return gr.Button("Start Creating", interactive=True)
|
75 |
generate_seed_button.click(make_row_visible, inputs=[generate_seed_button], outputs=[concept_row, concept_desc])
|
76 |
feeling_input.submit(make_row_visible, inputs=[generate_seed_button], outputs=[concept_row, concept_desc])
|
77 |
approve_button.click(enable_button, inputs=[approve_button], outputs=[continue_btn])
|