YazeedBinShihah commited on
Commit
36f5e5b
·
verified ·
1 Parent(s): 3704830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -845,7 +845,7 @@ footer { display: none !important; }
845
  with gr.Blocks(css=custom_css, title="SmartTutor AI") as demo:
846
 
847
  # State
848
- quiz_state = gr.State()
849
 
850
  with gr.Column(elem_classes="header-box"):
851
  gr.HTML(
@@ -997,9 +997,10 @@ with gr.Blocks(css=custom_css, title="SmartTutor AI") as demo:
997
 
998
  if __name__ == "__main__":
999
  print("Starting SmartTutor AI on Hugging Face...")
1000
- demo.queue().launch(
 
1001
  server_name="0.0.0.0",
1002
  server_port=7860,
1003
  share=False,
1004
- show_api=False, # This helps avoid the Schema generation error
1005
  )
 
845
  with gr.Blocks(css=custom_css, title="SmartTutor AI") as demo:
846
 
847
  # State
848
+ quiz_state = gr.State(None)
849
 
850
  with gr.Column(elem_classes="header-box"):
851
  gr.HTML(
 
997
 
998
  if __name__ == "__main__":
999
  print("Starting SmartTutor AI on Hugging Face...")
1000
+ demo.queue()
1001
+ demo.launch(
1002
  server_name="0.0.0.0",
1003
  server_port=7860,
1004
  share=False,
1005
+ show_api=False,
1006
  )