freddyaboulton HF Staff commited on
Commit
86a2dd4
·
verified ·
1 Parent(s): 1a8e7b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -57,6 +57,11 @@ async def _():
57
  async def _():
58
  return RedirectResponse("/weather_mcp/.well-known/oauth-protected-resource")
59
 
 
 
 
 
 
60
  if __name__ == "__main__":
61
  import uvicorn
62
- uvicorn.run(app, host="0.0.0.0", port=7860)
 
57
  async def _():
58
  return RedirectResponse("/weather_mcp/.well-known/oauth-protected-resource")
59
 
60
+ @app.post("/register")
61
+ async def _():
62
+ return RedirectResponse("https://huggingface.co/oauth/register")
63
+
64
+
65
  if __name__ == "__main__":
66
  import uvicorn
67
+ uvicorn.run(app, host="0.0.0.0", port=7860)