Spaces:
Runtime error
Runtime error
Download app.py from Kiruthikaramalingam/Interactive_Python_Chatbot1: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/Kiruthikaramalingam/Interactive_Python_Chatbot1/resolve/main/app.py
- Command line
-
hf download hf://spaces/Kiruthikaramalingam/Interactive_Python_Chatbot1/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Kiruthikaramalingam/Interactive_Python_Chatbot1/resolve/main/app.py
425 Bytes
| from flask import Flask, render_template | |
| from routes.chatbot_routes import chatbot_routes | |
| import os | |
| # Explicitly set the templates folder | |
| app = Flask(__name__, template_folder=os.path.join(os.getcwd(), "templates")) | |
| # Register routes | |
| app.register_blueprint(chatbot_routes) | |
| def home(): | |
| return render_template("tempor.html") | |
| if __name__ == "__main__": | |
| app.run(debug=True, host="0.0.0.0", port=7860) | |