Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -75,7 +75,7 @@ LOGOUT_BUTTON = """
|
|
| 75 |
"""
|
| 76 |
|
| 77 |
@app.get("/", response_class=HTMLResponse)
|
| 78 |
-
def
|
| 79 |
oauth_info = parse_huggingface_oauth(request)
|
| 80 |
return HTML_ROOT.format(content=LOGOUT_BUTTON.format(oauth_info=oauth_info) if oauth_info is not None else LOGIN_BUTTON)
|
| 81 |
|
|
|
|
| 75 |
"""
|
| 76 |
|
| 77 |
@app.get("/", response_class=HTMLResponse)
|
| 78 |
+
def main_page(request: Request):
|
| 79 |
oauth_info = parse_huggingface_oauth(request)
|
| 80 |
return HTML_ROOT.format(content=LOGOUT_BUTTON.format(oauth_info=oauth_info) if oauth_info is not None else LOGIN_BUTTON)
|
| 81 |
|