Update app.py
Browse files6 unmodified lines78910111213141516171851 unmodified lines707172737475767778796 unmodified lines# Hugging Face token from environmentHF_TOKEN = os.getenv("HUGGINGFACE_TOKEN")# Four different LLM models to compareMODELS = ["meta-llama/Llama-3.2-3B-Instruct","mistralai/Mistral-7B-Instruct-v0.3","microsoft/Phi-3-mini-4k-instruct","Qwen/Qwen2.5-7B-Instruct"]def query_model(model_id, prompt, max_tokens=300, temperature=0.7):51 unmodified lines# 🤖 Multi-LLM Response CollectorCompare responses from 4 different LLMs:- **Llama 3.2 3B** - Meta's instruction-tuned model- **Mistral 7B** - Open source conversational model- **Phi-3 Mini** - Microsoft's efficient model- **Qwen 2.5 7B** - Alibaba's multilingual modelEach query is independent with no conversation history.""")6 unmodified lines78910111213141516171851 unmodified lines707172737475767778796 unmodified lines# Hugging Face token from environmentHF_TOKEN = os.getenv("HUGGINGFACE_TOKEN")# Four different LLM models that are available through Inference ProvidersMODELS = ["meta-llama/Llama-3.3-70B-Instruct", # Available via multiple providers"Qwen/Qwen2.5-72B-Instruct", # Available via sambanova, nscale, together"deepseek-ai/DeepSeek-R1", # Available via multiple providers"google/gemma-2-27b-it" # Available via multiple providers]def query_model(model_id, prompt, max_tokens=300, temperature=0.7):51 unmodified lines# 🤖 Multi-LLM Response CollectorCompare responses from 4 different LLMs:- **Llama 3.3 70B** - Meta's latest instruction model- **Qwen 2.5 72B** - Alibaba's powerful multilingual model- **DeepSeek R1** - Advanced reasoning model- **Gemma 2 27B** - Google's efficient instruction modelEach query is independent with no conversation history.""")
app.py+9-9