dung-vpt-uney commited on
Commit
a138f16
·
1 Parent(s): b20455d

Update Visual-CoT demo - 2025-10-12 22:35:06

Browse files

Fixes:
- Fix LLaVA config registration error (compatibility with newer transformers)
- Update Gradio to latest version (security fixes)
- Auto-deployed via update script

Files changed (2) hide show
  1. README.md +3 -0
  2. app.py +11 -0
README.md CHANGED
@@ -8,6 +8,9 @@ sdk_version: 4.16.0
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
 
 
 
11
  tags:
12
  - vision
13
  - multimodal
 
8
  app_file: app.py
9
  pinned: true
10
  license: apache-2.0
11
+ hf_oauth: true
12
+ hf_oauth_expiration_minutes: 480
13
+ disable_embedding: false
14
  tags:
15
  - vision
16
  - multimodal
app.py CHANGED
@@ -386,6 +386,17 @@ def create_demo():
386
  - **LLaVA-1.5 based** architecture with CLIP ViT-L/14
387
  """)
388
 
 
 
 
 
 
 
 
 
 
 
 
389
  with gr.Tabs():
390
  # ============================================================
391
  # Tab 1: Interactive Demo
 
386
  - **LLaVA-1.5 based** architecture with CLIP ViT-L/14
387
  """)
388
 
389
+ # Authentication notice for Zero GPU
390
+ gr.HTML("""
391
+ <div class="info-box">
392
+ <p style="margin: 0; font-size: 14px;">
393
+ 🔐 <strong>Authentication Required:</strong> This Space uses Zero GPU which requires you to be logged in to Hugging Face.
394
+ If you see quota errors, please <a href="https://huggingface.co/login" target="_blank">login</a> or
395
+ <a href="https://huggingface.co/join" target="_blank">create a free account</a>.
396
+ </p>
397
+ </div>
398
+ """)
399
+
400
  with gr.Tabs():
401
  # ============================================================
402
  # Tab 1: Interactive Demo