parth0908 commited on
Commit
76e320d
·
verified ·
1 Parent(s): 16d258d

Upload server/app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +7 -0
server/app.py CHANGED
@@ -191,3 +191,10 @@ def run_baseline() -> Dict[str, Any]:
191
  total += r["reward"]
192
  scores["mean"] = round(total / 3, 4)
193
  return scores
 
 
 
 
 
 
 
 
191
  total += r["reward"]
192
  scores["mean"] = round(total / 3, 4)
193
  return scores
194
+
195
+ def main():
196
+ import uvicorn
197
+ uvicorn.run("server.app:app", host="0.0.0.0", port=8000)
198
+
199
+ if __name__ == "__main__":
200
+ main()