vedastra commited on
Commit
55f4520
·
verified ·
1 Parent(s): 0cffcf8

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +2 -2
server/app.py CHANGED
@@ -117,9 +117,9 @@ def run_baseline():
117
  # ---------------------------------------------------------------------------
118
  # Entry point
119
  # ---------------------------------------------------------------------------
120
- def main(host: str = "0.0.0.0", port: int = 8000, **kwargs) -> None:
121
  import uvicorn
122
- uvicorn.run("server.app:app", host=host, port=port, **kwargs)
123
 
124
  if __name__ == "__main__":
125
  main()
 
117
  # ---------------------------------------------------------------------------
118
  # Entry point
119
  # ---------------------------------------------------------------------------
120
+ def main():
121
  import uvicorn
122
+ uvicorn.run(app, host="0.0.0.0", port=8000)
123
 
124
  if __name__ == "__main__":
125
  main()