Spaces:
Sleeping
Sleeping
shethjenil
commited on
Commit
•
82e8beb
1
Parent(s):
dde2fec
Update app.py
Browse files
app.py
CHANGED
@@ -51,9 +51,9 @@ def function2():
|
|
51 |
def function3():
|
52 |
book.changesrcnum(int(flask.request.args.get("srcnum")))
|
53 |
return "srcnum changed"
|
54 |
-
@app.route('/file/<
|
55 |
def serve_image(filename):
|
56 |
-
|
57 |
|
58 |
if __name__ == '__main__':
|
59 |
app.run("0.0.0.0",7860)
|
|
|
51 |
def function3():
|
52 |
book.changesrcnum(int(flask.request.args.get("srcnum")))
|
53 |
return "srcnum changed"
|
54 |
+
@app.route('/file/images/<filename>')
|
55 |
def serve_image(filename):
|
56 |
+
return flask.send_from_directory('images', filename)
|
57 |
|
58 |
if __name__ == '__main__':
|
59 |
app.run("0.0.0.0",7860)
|