Update app.py
Browse filesAdmission ChatBot
app.py
CHANGED
@@ -579,25 +579,6 @@ class BOUESTIChatbot:
|
|
579 |
|
580 |
return interface
|
581 |
|
582 |
-
# Initialize
|
583 |
chatbot = BOUESTIChatbot()
|
584 |
-
|
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()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|