sebasmos commited on
Commit
cd6ac8c
·
1 Parent(s): 104b883

Fix Gradio 4.20 compatibility - remove scale from Markdown

Browse files
Files changed (1) hide show
  1. app.py +13 -12
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
- hf_token_chat = gr.Textbox(
182
- label="🔑 HuggingFace Token (Required)",
183
- placeholder="Enter your HF token from https://huggingface.co/settings/tokens",
184
- type="password",
185
- scale=3
186
- )
187
- gr.Markdown("""
188
- **Get a free token:**
189
- 1. Go to [huggingface.co/settings/tokens](https://huggingface.co/settings/tokens)
190
- 2. Create a new token with "Read" permissions
191
- 3. Paste it here
192
- """, scale=1)
 
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(