nagasurendra commited on
Commit
464758a
·
verified ·
1 Parent(s): 475bfe5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, request
2
+
3
+ app = Flask(__name__)
4
+
5
+ @app.route("/")
6
+ def home():
7
+ name = request.args.get('name', 'Guest')
8
+ email = request.args.get('email', 'No Email')
9
+ return f"<h1>Welcome, {name}!</h1><p>Your email: {email}</p>"
10
+
11
+ if __name__ == "__main__":
12
+ app.run()