Kyle Pearson commited on
Commit
d723e62
·
1 Parent(s): 57a52e9

Refactor entry point, consolidate app creation, update main block, simplify Gradio init

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -553,12 +553,7 @@ def create_app():
553
  return demo
554
 
555
 
556
- def main():
557
- """Create and launch the Gradio app."""
558
- app = create_app()
559
- # CSS is passed to launch() in Gradio 6+
560
- app.launch()
561
-
562
 
563
  if __name__ == "__main__":
564
- main()
 
553
  return demo
554
 
555
 
556
+ demo = create_app()
 
 
 
 
 
557
 
558
  if __name__ == "__main__":
559
+ demo.launch()