AkashKumarave commited on
Commit
c956e8d
·
verified ·
1 Parent(s): 1ecfe0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
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)