Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -483,6 +483,13 @@ if __name__ == '__main__':
|
|
483 |
html_file = main(input=user_input)
|
484 |
|
485 |
##! working. 需要先在sidebar上设置re_btn,然后在这里调用regenerate函数。而不是在button里面直接用on-click来触发函数。
|
486 |
-
|
487 |
-
if re_btn:
|
488 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
483 |
html_file = main(input=user_input)
|
484 |
|
485 |
##! working. 需要先在sidebar上设置re_btn,然后在这里调用regenerate函数。而不是在button里面直接用on-click来触发函数。
|
486 |
+
|
487 |
+
# if re_btn:
|
488 |
+
# regenerate()
|
489 |
+
|
490 |
+
try:
|
491 |
+
if re_btn:
|
492 |
+
regenerate()
|
493 |
+
except Exception as e:
|
494 |
+
print('Error:', e)
|
495 |
+
pass
|