jayesh20 commited on
Commit
34aae41
·
verified ·
1 Parent(s): 4c67b1f

Upload folder using huggingface_hub

Browse files
server/app.py CHANGED
@@ -34,9 +34,4 @@ def main(host: str = "0.0.0.0", port: int = 8000):
34
  uvicorn.run(app, host=host, port=port)
35
 
36
  if __name__ == "__main__":
37
- import argparse
38
-
39
- parser = argparse.ArgumentParser()
40
- parser.add_argument("--port", type=int, default=8000)
41
- args = parser.parse_args()
42
- main(port=args.port)
 
34
  uvicorn.run(app, host=host, port=port)
35
 
36
  if __name__ == "__main__":
37
+ main()
 
 
 
 
 
validate_check.txt ADDED
@@ -0,0 +1 @@
 
 
1
+ [OK] openenv_jayesh: Ready for multi-mode deployment
validate_output.txt ADDED
Binary file (324 Bytes). View file
 
validate_output2.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ [FAIL] openenv_jayesh: Not ready for multi-mode deployment
2
+
3
+ Issues found:
4
+ - server/app.py main() function not callable (missing if __name__ == '__main__')