Spaces:
Paused
Paused
VINU NAYAK commited on
Create start.py
Browse files
start.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import uvicorn
|
| 2 |
+
|
| 3 |
+
if __name__ == "__main__":
|
| 4 |
+
print("Starting Background Removal API server...")
|
| 5 |
+
print("The API will be available at: http://localhost:7860")
|
| 6 |
+
print("Use the /remove-bg endpoint to remove backgrounds from images")
|
| 7 |
+
uvicorn.run("app:app", host="0.0.0.0", port=7860, reload=True)
|