Linoy Tsaban
commited on
Commit
·
50ba64c
1
Parent(s):
609897f
Update app.py
Browse filesfixed add concept button bug
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),
|
| 256 |
else:
|
| 257 |
-
return row2.update(visible=True), row3.update(visible=True),
|
| 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)
|