Spaces:
Runtime error
Runtime error
Upload server/app.py with huggingface_hub
Browse files- 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()
|