Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from flask import Flask, render_template
|
| 2 |
+
|
| 3 |
+
app = Flask(__name__)
|
| 4 |
+
|
| 5 |
+
# Route for the homepage with speech detection
|
| 6 |
+
@app.route('/')
|
| 7 |
+
def index():
|
| 8 |
+
return render_template('index.html')
|
| 9 |
+
|
| 10 |
+
# Route for the landing page
|
| 11 |
+
@app.route('/landing')
|
| 12 |
+
def landing():
|
| 13 |
+
return "<h1>Welcome to Biriyani Hub</h1>"
|
| 14 |
+
|
| 15 |
+
if __name__ == '__main__':
|
| 16 |
+
app.run(debug=True)
|