Bwrite commited on
Commit
835b56e
·
verified ·
1 Parent(s): 9b4ab2a

Update app.py

Browse files

Admission ChatBot

Files changed (1) hide show
  1. app.py +2 -21
app.py CHANGED
@@ -579,25 +579,6 @@ class BOUESTIChatbot:
579
 
580
  return interface
581
 
582
- # Initialize ChatBot and Interface
583
  chatbot = BOUESTIChatbot()
584
- interface = chatbot.create_gradio_interface()
585
-
586
- # Launch the app
587
- if __name__ == "__main__":
588
- interface.launch(share=True, debug=True, height=600)
589
-
590
-
591
- # if __name__ == "__main__":
592
- # # Create chatbot instance
593
- # chatbot = BOUESTIChatbot()
594
-
595
- # # Create and launch Gradio interface
596
- # interface = chatbot.create_gradio_interface()
597
-
598
- # # Launch the interface
599
- # interface.launch(
600
- # share=True, # Creates a public link
601
- # debug=True, # Enable debug mode
602
- # height=600 # Set height
603
- # )
 
579
 
580
  return interface
581
 
582
+ # Initialize and expose the chatbot interface for Hugging Face Spaces
583
  chatbot = BOUESTIChatbot()
584
+ demo = chatbot.create_gradio_interface()