Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -112,7 +112,7 @@ def chatbot_respond(message: str, history: list, repo_id: str, api_key: str):
|
|
112 |
with gr.Blocks(title="HF Code Sandbox Chat") as demo:
|
113 |
# Top bar: HF login
|
114 |
with gr.Row():
|
115 |
-
login_btn = gr.LoginButton(
|
116 |
login_status = gr.Markdown("*Not signed in.*")
|
117 |
login_btn.click(
|
118 |
lambda profile: f"✅ Logged in as {profile.username}" if profile else "*Not signed in.*",
|
|
|
112 |
with gr.Blocks(title="HF Code Sandbox Chat") as demo:
|
113 |
# Top bar: HF login
|
114 |
with gr.Row():
|
115 |
+
login_btn = gr.LoginButton("Sign in with HF", variant="huggingface")
|
116 |
login_status = gr.Markdown("*Not signed in.*")
|
117 |
login_btn.click(
|
118 |
lambda profile: f"✅ Logged in as {profile.username}" if profile else "*Not signed in.*",
|