Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
-
|
|
|
|
| 2 |
|
| 3 |
-
|
| 4 |
-
import subprocess
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
-
|
| 11 |
-
|
|
|
|
| 1 |
+
from flask import Flask, render_template
|
| 2 |
+
from flask_cors import CORS # Import CORS
|
| 3 |
|
| 4 |
+
app = Flask(__name__)
|
|
|
|
| 5 |
|
| 6 |
+
# Enable CORS for the entire app
|
| 7 |
+
CORS(app)
|
| 8 |
+
|
| 9 |
+
@app.route('/')
|
| 10 |
+
def home():
|
| 11 |
+
return render_template('index.html')
|
| 12 |
|
| 13 |
+
if __name__ == "__main__":
|
| 14 |
+
app.run(debug=True)
|