Spaces:
Sleeping
Sleeping
Add LoginButton + hf_oauth: required for ZeroGPU Pro quota in iframe context
Browse files
app.py
CHANGED
|
@@ -790,6 +790,11 @@ def build_app() -> gr.Blocks:
|
|
| 790 |
'</div>'
|
| 791 |
'</div>'
|
| 792 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 793 |
|
| 794 |
# Upload
|
| 795 |
with gr.Row(elem_classes=["upload-row"]):
|
|
|
|
| 790 |
'</div>'
|
| 791 |
'</div>'
|
| 792 |
)
|
| 793 |
+
# ZeroGPU requires authenticated identity for proper quota.
|
| 794 |
+
# Iframes don't always pass HF cookies, so we surface an explicit
|
| 795 |
+
# OAuth button. After login the user gets 25min/day Pro quota.
|
| 796 |
+
with gr.Row():
|
| 797 |
+
gr.LoginButton(value="Sign in with Hugging Face", size="sm")
|
| 798 |
|
| 799 |
# Upload
|
| 800 |
with gr.Row(elem_classes=["upload-row"]):
|