Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,4 +71,11 @@ def vectorize_endpoint():
|
|
| 71 |
download_name='vectorized.svg'
|
| 72 |
)
|
| 73 |
except Exception as e:
|
| 74 |
-
return jsonify({'error': str
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
download_name='vectorized.svg'
|
| 72 |
)
|
| 73 |
except Exception as e:
|
| 74 |
+
return jsonify({'error': str(e)}), 500
|
| 75 |
+
|
| 76 |
+
@app.route('/')
|
| 77 |
+
def index():
|
| 78 |
+
return jsonify({'status': 'Image Vectorization API is running'})
|
| 79 |
+
|
| 80 |
+
if __name__ == '__main__':
|
| 81 |
+
app.run(host='0.0.0.0', port=7860)
|