Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,11 +11,6 @@ def install_flask():
|
|
11 |
|
12 |
# Install Flask on startup
|
13 |
install_flask()
|
14 |
-
@flask_app.route("/mario")
|
15 |
-
def serve_index():
|
16 |
-
return send_from_directory("mario", "index.html")
|
17 |
-
# Now import Flask
|
18 |
-
from flask import Flask, send_from_directory
|
19 |
|
20 |
# Clone the Mario game repository
|
21 |
def install_package():
|
@@ -26,6 +21,12 @@ install_package()
|
|
26 |
|
27 |
# Create a Flask app to serve static files
|
28 |
flask_app = Flask(__name__)
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
|
30 |
# Serve static files (JavaScript, CSS, assets, etc.)
|
31 |
@flask_app.route("/mario/<path:path>")
|
|
|
11 |
|
12 |
# Install Flask on startup
|
13 |
install_flask()
|
|
|
|
|
|
|
|
|
|
|
14 |
|
15 |
# Clone the Mario game repository
|
16 |
def install_package():
|
|
|
21 |
|
22 |
# Create a Flask app to serve static files
|
23 |
flask_app = Flask(__name__)
|
24 |
+
@flask_app.route("/mario")
|
25 |
+
def serve_index():
|
26 |
+
return send_from_directory("mario", "index.html")
|
27 |
+
# Now import Flask
|
28 |
+
from flask import Flask, send_from_directory
|
29 |
+
|
30 |
|
31 |
# Serve static files (JavaScript, CSS, assets, etc.)
|
32 |
@flask_app.route("/mario/<path:path>")
|