phenixrhyder commited on
Commit
30f1706
·
unverified ·
1 Parent(s): 7908005

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -1,14 +1,14 @@
1
- title: Frame Studio
2
- emoji: 🎨
3
- colorFrom: indigo
4
- colorTo: purple
5
- sdk: static
6
- pinned: false
7
- Frame Studio 🎨
8
- Craft your perfect checkerboard frame. This app was built to generate custom frames with variable checker sizes, colors, and transparency.
9
- Features:
10
- * Live Preview: See your changes in real-time.
11
- * Custom Colors: Pick any two colors or make them transparent.
12
- * Randomize: Get inspired with a random design.
13
- * Flexible Export: Generate and save frames at multiple preset or custom dimensions.
14
- Built with HTML, Tailwind CSS, and JavaScript.
 
1
+ from flask import Flask, send_from_directory
2
+
3
+ # Create a Flask web server
4
+ app = Flask(__name__, static_folder='.', static_url_path='')
5
+
6
+ # Define the route for the root URL ('/')
7
+ @app.route('/')
8
+ def index():
9
+ # Send the index.html file from the current directory
10
+ return send_from_directory('.', 'index.html')
11
+
12
+ # This allows the app to be run by a production server
13
+ if __name__ == '__main__':
14
+ app.run(host='0.0.0.0', port=7860)