Linoy Tsaban commited on
Commit
50ba64c
1 Parent(s): 609897f

Update app.py

Browse files

fixed add concept button bug

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -252,9 +252,9 @@ with gr.Blocks(css='style.css') as demo:
252
 
253
  def add_concept(sega_concepts_counter):
254
  if sega_concepts_counter == 1:
255
- return row2.update(visible=True), row3.update(visible=False), plus.update(visible=True), 2
256
  else:
257
- return row2.update(visible=True), row3.update(visible=True), plus.update(visible=False), 3
258
 
259
  def show_reconstruction_button():
260
  return reconstruct_button.update(visible=True)
 
252
 
253
  def add_concept(sega_concepts_counter):
254
  if sega_concepts_counter == 1:
255
+ return row2.update(visible=True), row3.update(visible=False), add_concept_button.update(visible=True), 2
256
  else:
257
+ return row2.update(visible=True), row3.update(visible=True), add_concept_button.update(visible=False), 3
258
 
259
  def show_reconstruction_button():
260
  return reconstruct_button.update(visible=True)