Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions webdeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,19 @@
# app.py file ........

from flask import Flask

# Initialize the Flask application
app = Flask(__name__)

# Define a route for the root URL ('/')
@app.route('/')
def hello_world():
return 'Hello from Tech VJ'

# Return a block of ASCII art text when the root URL is accessed
return """Bot is Running"""

# Run the application
if __name__ == "__main__":
app.run()
# Set the host to '0.0.0.0' to make the server publicly available
# Set the port to 8080
app.run(host='0.0.0.0', port=8080)