Spaces:
Running
Running
Commit
·
86629e2
1
Parent(s):
299e22b
fix
Browse files
app.py
CHANGED
@@ -117,10 +117,10 @@ with gr.Blocks(theme=tufte_theme) as demo:
|
|
117 |
vote_output = gr.Textbox(label="Vote Status", interactive=False, visible=False)
|
118 |
|
119 |
def generate_and_show(prompt):
|
120 |
-
return
|
121 |
|
122 |
def show_voting_buttons(blurb):
|
123 |
-
return blurb, gr.Row(visible=True)
|
124 |
|
125 |
generate_btn.click(get_and_store_prompt, outputs=prompt_state).then(
|
126 |
generate_and_show, inputs=prompt_state, outputs=[blurb_output, voting_row]
|
|
|
117 |
vote_output = gr.Textbox(label="Vote Status", interactive=False, visible=False)
|
118 |
|
119 |
def generate_and_show(prompt):
|
120 |
+
return "Generating...", gr.Row.update(visible=False)
|
121 |
|
122 |
def show_voting_buttons(blurb):
|
123 |
+
return blurb, gr.Row.update(visible=True)
|
124 |
|
125 |
generate_btn.click(get_and_store_prompt, outputs=prompt_state).then(
|
126 |
generate_and_show, inputs=prompt_state, outputs=[blurb_output, voting_row]
|