allinaigc commited on
Commit
546ed9f
1 Parent(s): e8ebaa5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -3
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
- re_btn = None
487
- if re_btn:
488
- regenerate()
 
 
 
 
 
 
 
 
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