Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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)
|