cgt-llm-chatbot / app.py

Commit History

Add explicit print statement to verify demo is accessible
769bce4

arahrooh commited on

Initialize demo variable first, then create - ensure it's always set
7a52211

arahrooh commited on

Add explicit demo validation and final checks to ensure Spaces can detect it
7310187

arahrooh commited on

Create demo unconditionally at module level - ensure Spaces can always detect it
f67cadb

arahrooh commited on

Refactor demo creation to match HF Spaces documentation pattern - create directly at module level
74d36f0

arahrooh commited on

Simplify demo creation - remove try/except wrapper that might interfere with Spaces detection
c98a991

arahrooh commited on

Add explicit demo validation and error handling for Spaces
63dafc0

arahrooh commited on

Fix logger initialization order - logger must be defined before use
f3b3fd8

arahrooh commited on

Ensure demo is always set at module level for Spaces detection
68cc4a9

arahrooh commited on

Add error handling back to create_demo_for_spaces
55b42f4

arahrooh commited on

Simplify demo creation - remove try/except wrapper for cleaner module-level assignment
9c35d2f

arahrooh commited on

Simplify demo creation to match Gradio HF Spaces pattern
e0c4612

arahrooh commited on

Ensure demo is always set at module level for Spaces
e2f6a7a

arahrooh commited on

Add final module-level demo check
9627e62

arahrooh commited on

Add explicit demo verification logging
84e5bb0

arahrooh commited on

Add final demo check for Spaces
b224160

arahrooh commited on

Fix demo initialization order and upgrade Gradio version
7a05627

arahrooh commited on

Add demo validation and better error handling
68062d7

arahrooh commited on

Add debug logging to track demo creation
1c5f7eb

arahrooh commited on

Ensure demo is always defined for Spaces with better error handling
56dc312

arahrooh commited on

Fix AttributeError: use property for args instead of direct assignment
dffdda5

arahrooh commited on

Prevent main() from running on Spaces
4c09fcb

arahrooh commited on

Fix AttributeError: use bot.args.model instead of bot.current_model
237ee8e

arahrooh commited on

Use Hugging Face Inference API on Spaces instead of loading models locally
ecb9bc5

arahrooh commited on

Fix triple model loading: prevent main() from running on Spaces
45ed548

arahrooh commited on

Optimize memory usage: use float16 on CPU and fix double loading
1553f78

arahrooh commited on

Fix app.py for Hugging Face Spaces - add module-level demo
272b3bb

arahrooh commited on

Deploy CGT-LLM-Beta RAG Chatbot with vector database
086ffee

arahrooh commited on