Spaces:
Sleeping
Sleeping
Fix Gradio 4.20 compatibility - remove scale from Markdown
Browse files
app.py
CHANGED
|
@@ -178,18 +178,19 @@ with gr.Blocks(title="Sherlock: AI Project Assistant", theme=gr.themes.Soft(), c
|
|
| 178 |
|
| 179 |
# HuggingFace Token input
|
| 180 |
with gr.Row():
|
| 181 |
-
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
gr.
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
|
|
|
| 193 |
|
| 194 |
# Project selection dropdown
|
| 195 |
project_dropdown = gr.Dropdown(
|
|
|
|
| 178 |
|
| 179 |
# HuggingFace Token input
|
| 180 |
with gr.Row():
|
| 181 |
+
with gr.Column(scale=3):
|
| 182 |
+
hf_token_chat = gr.Textbox(
|
| 183 |
+
label="🔑 HuggingFace Token (Required)",
|
| 184 |
+
placeholder="Enter your HF token from https://huggingface.co/settings/tokens",
|
| 185 |
+
type="password"
|
| 186 |
+
)
|
| 187 |
+
with gr.Column(scale=1):
|
| 188 |
+
gr.Markdown("""
|
| 189 |
+
**Get a free token:**
|
| 190 |
+
1. Go to [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
|
| 191 |
+
2. Create a new token with "Read" permissions
|
| 192 |
+
3. Paste it here
|
| 193 |
+
""")
|
| 194 |
|
| 195 |
# Project selection dropdown
|
| 196 |
project_dropdown = gr.Dropdown(
|