Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -178,3 +178,6 @@ async def predict(payload: ImagePayload):
|
|
| 178 |
|
| 179 |
except Exception as e:
|
| 180 |
return {"error": str(e)}
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
except Exception as e:
|
| 180 |
return {"error": str(e)}
|
| 181 |
+
|
| 182 |
+
if __name__ == "__main__":
|
| 183 |
+
import os port = int(os.environ.get("PORT", 8080))
|