Woziii commited on
Commit
0f4a81a
·
verified ·
1 Parent(s): be11f9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -153,46 +153,46 @@ with gr.Blocks() as demo:
153
  outputs=[sections_list]
154
  )
155
 
156
- remove_section_btn.click(
157
  remove_section,
158
  inputs=[sections],
159
  outputs=[sections_list]
160
- )
161
 
162
- next_btn_2.click(
163
  lambda x: x + 1,
164
  inputs=[current_step],
165
  outputs=[current_step]
166
- ).then(
167
  update_visibility,
168
  inputs=[current_step],
169
  outputs=[step1, step2, step3]
170
- )
171
 
172
- prev_btn_2.click(
173
  prev_step,
174
  inputs=[current_step],
175
  outputs=[current_step]
176
- ).then(
177
  update_visibility,
178
  inputs=[current_step],
179
  outputs=[step1, step2, step3]
180
- )
181
 
182
- generate_btn.click(
183
  generate_audios,
184
  inputs=[project_info, sections],
185
  outputs=audio_outputs
186
- )
187
 
188
- prev_btn_3.click(
189
  prev_step,
190
  inputs=[current_step],
191
  outputs=[current_step]
192
- ).then(
193
  update_visibility,
194
  inputs=[current_step],
195
  outputs=[step1, step2, step3]
196
- )
197
 
198
  demo.launch()
 
153
  outputs=[sections_list]
154
  )
155
 
156
+ remove_section_btn.click(
157
  remove_section,
158
  inputs=[sections],
159
  outputs=[sections_list]
160
+ )
161
 
162
+ next_btn_2.click(
163
  lambda x: x + 1,
164
  inputs=[current_step],
165
  outputs=[current_step]
166
+ ).then(
167
  update_visibility,
168
  inputs=[current_step],
169
  outputs=[step1, step2, step3]
170
+ )
171
 
172
+ prev_btn_2.click(
173
  prev_step,
174
  inputs=[current_step],
175
  outputs=[current_step]
176
+ ).then(
177
  update_visibility,
178
  inputs=[current_step],
179
  outputs=[step1, step2, step3]
180
+ )
181
 
182
+ generate_btn.click(
183
  generate_audios,
184
  inputs=[project_info, sections],
185
  outputs=audio_outputs
186
+ )
187
 
188
+ prev_btn_3.click(
189
  prev_step,
190
  inputs=[current_step],
191
  outputs=[current_step]
192
+ ).then(
193
  update_visibility,
194
  inputs=[current_step],
195
  outputs=[step1, step2, step3]
196
+ )
197
 
198
  demo.launch()