Update app.py
Browse files
app.py
CHANGED
|
@@ -148,24 +148,9 @@ def update_ui(profile: gr.OAuthProfile | None) -> Tuple[gr.update, gr.update, gr
|
|
| 148 |
# Create the interface
|
| 149 |
with gr.Blocks(title="SmolVLM2 Waitlist") as demo:
|
| 150 |
gr.Markdown("""
|
| 151 |
-
#
|
| 152 |
-
## Please log-in using your Hugging Face Id to continue
|
| 153 |
""")
|
| 154 |
|
| 155 |
-
gr.LoginButton()
|
| 156 |
-
welcome_msg = gr.Markdown(visible=True)
|
| 157 |
-
join_button = gr.Button("Join Waitlist", variant="primary", visible=False)
|
| 158 |
-
status_msg = gr.Markdown(visible=False)
|
| 159 |
-
|
| 160 |
-
# Update UI elements on load and auth change
|
| 161 |
-
demo.load(
|
| 162 |
-
fn=update_ui,
|
| 163 |
-
inputs=None,
|
| 164 |
-
outputs=[welcome_msg, join_button, status_msg]
|
| 165 |
-
)
|
| 166 |
-
|
| 167 |
-
# Handle join button click
|
| 168 |
-
join_button.click(join_waitlist, None, status_msg)
|
| 169 |
|
| 170 |
if __name__ == "__main__":
|
| 171 |
demo.queue().launch()
|
|
|
|
| 148 |
# Create the interface
|
| 149 |
with gr.Blocks(title="SmolVLM2 Waitlist") as demo:
|
| 150 |
gr.Markdown("""
|
| 151 |
+
# UPDATE: Hugging Snap Available on Apple Store - you can download it for free. No need to wait!!
|
|
|
|
| 152 |
""")
|
| 153 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 154 |
|
| 155 |
if __name__ == "__main__":
|
| 156 |
demo.queue().launch()
|