Spaces:
Running
Running
Updated for Hugging Face: renamed to app.py, port 7860
Browse files- 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',
|
| 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)
|