Spaces:
Sleeping
Sleeping
tyrwh
commited on
Commit
·
091f8cc
1
Parent(s):
7c12ea7
Cleaning unused functions, .gitignore updates
Browse files- .gitignore +2 -0
- app.py +2 -2
.gitignore
CHANGED
|
@@ -3,3 +3,5 @@ weights.pt
|
|
| 3 |
weights_nemaquant.v1.onnx
|
| 4 |
results/
|
| 5 |
*.pyc
|
|
|
|
|
|
|
|
|
| 3 |
weights_nemaquant.v1.onnx
|
| 4 |
results/
|
| 5 |
*.pyc
|
| 6 |
+
annotated/
|
| 7 |
+
uploads/
|
app.py
CHANGED
|
@@ -48,8 +48,8 @@ def handle_exception(e):
|
|
| 48 |
print(traceback.format_exc())
|
| 49 |
return jsonify({"error": "Server error", "log": str(e)}), 500
|
| 50 |
|
| 51 |
-
def allowed_file(filename):
|
| 52 |
-
|
| 53 |
|
| 54 |
@app.route('/')
|
| 55 |
def index():
|
|
|
|
| 48 |
print(traceback.format_exc())
|
| 49 |
return jsonify({"error": "Server error", "log": str(e)}), 500
|
| 50 |
|
| 51 |
+
# def allowed_file(filename):
|
| 52 |
+
# return '.' in filename and filename.rsplit('.', 1)[1].lower() in app.config['ALLOWED_EXTENSIONS']
|
| 53 |
|
| 54 |
@app.route('/')
|
| 55 |
def index():
|