Update app.py
Browse files16 unmodified lines1718192021222350 unmodified lines747576777879808182838416 unmodified lines# Use the correct model class for Qwen3-VLmodel = Qwen3VLForConditionalGeneration.from_pretrained(MODEL_ID,torch_dtype=torch.bfloat16,device_map="auto" if torch.cuda.is_available() else "cpu",trust_remote_code=True,low_cpu_mem_usage=True50 unmodified linesexcept Exception as e:return f"Error: {str(e)[:200]}"demo = gr.ChatInterface(fn=chat_with_valis,title="🤖 VALIS AI",description="Talk to VALIS - Your independent AI assistant",theme="soft",examples=["Who are you?","What are your core values?",16 unmodified lines1718192021222350 unmodified lines747576777879808182838416 unmodified lines# Use the correct model class for Qwen3-VLmodel = Qwen3VLForConditionalGeneration.from_pretrained(MODEL_ID,dtype=torch.bfloat16, # Changed from torch_dtype to dtypedevice_map="auto" if torch.cuda.is_available() else "cpu",trust_remote_code=True,low_cpu_mem_usage=True50 unmodified linesexcept Exception as e:return f"Error: {str(e)[:200]}"# Removed theme parameter (causing the error)demo = gr.ChatInterface(fn=chat_with_valis,title="🤖 VALIS AI",description="Talk to VALIS - Your independent AI assistant",examples=["Who are you?","What are your core values?",
app.py+2-2