Caries1 commited on
Commit
cc010db
·
verified ·
1 Parent(s): b1bb30a

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -0
app.py ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from flask import Flask, send_from_directory
2
+
3
+ app = Flask(__name__)
4
+
5
+ # Kök dizine gidince index.html'i göster
6
+ @app.route('/')
7
+ def index():
8
+ return send_from_directory('.', 'index.html')
9
+
10
+ # Model ve resim dosyalarını servis et
11
+ @app.route('/<path:path>')
12
+ def static_files(path):
13
+ return send_from_directory('.', path)
14
+
15
+ if __name__ == '__main__':
16
+ app.run(debug=True)