Gregniuki commited on
Commit
ab77050
·
verified ·
1 Parent(s): 51bd00e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,14 +18,14 @@ def install_package():
18
  return "http://localhost:7860/mario" # Local URL (Change port if needed)
19
  # Install the game files on startup
20
  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.)
 
18
  return "http://localhost:7860/mario" # Local URL (Change port if needed)
19
  # Install the game files on startup
20
  install_package()
21
+ # Now import Flask
22
+ from flask import Flask, send_from_directory
23
 
24
  # Create a Flask app to serve static files
25
  flask_app = Flask(__name__)
26
  @flask_app.route("/mario")
27
  def serve_index():
28
  return send_from_directory("mario", "index.html")
 
 
29
 
30
 
31
  # Serve static files (JavaScript, CSS, assets, etc.)