HemanthR007 commited on
Commit
046fc5b
·
verified ·
1 Parent(s): d542a3d

Update main.py

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