kushalkv commited on
Commit
b0305c9
·
1 Parent(s): 44a65af

Updated for Hugging Face: renamed to app.py, port 7860

Browse files
Files changed (1) hide show
  1. api.py → app.py +1 -1
api.py → app.py RENAMED
@@ -92,7 +92,7 @@ def analyze_image():
92
  return jsonify({'error': 'Analysis failed'}), 500
93
 
94
  if __name__ == '__main__':
95
- PORT = int(os.environ.get('PORT', 5000))
96
  print("\n" + "=" * 70)
97
  print("DetectAI API Server")
98
  print("=" * 70)
 
92
  return jsonify({'error': 'Analysis failed'}), 500
93
 
94
  if __name__ == '__main__':
95
+ PORT = int(os.environ.get('PORT', 7860))
96
  print("\n" + "=" * 70)
97
  print("DetectAI API Server")
98
  print("=" * 70)