Spaces:
Build error
Build error
Update app.py
Browse files2 unmodified lines345678910111213141516171821 unmodified lines40414243442 unmodified linesdef client_fn(model):if "Mixtral" in model:return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")elif "Llama" in model:return InferenceClient("meta-llama/Meta-Llama-3-8B-Instruct")elif "Mistral" in model:return InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")elif "Phi" in model:return InferenceClient("microsoft/Phi-3-mini-4k-instruct")else:return InferenceClient("microsoft/Phi-3-mini-4k-instruct")system_instructions1 = "[SYSTEM] Your task is to Answer the question. Keep conversation very short, clear and concise. The expectation is that you will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things.[QUESTION]"21 unmodified linesdescription="""# Chat GO### Inspired from Google Go"""demo = gr.Interface(description=description,fn=models, inputs=["text", gr.Dropdown([ 'Mixtral 8x7B','Llama 3 8B','Mistral 7B v0.3','Phi 3 mini', ], value="Mistral 7B v0.3", label="Select Model") ], outputs="text", live=True, batch=True, max_batch_size=1000)demo.launch()2 unmodified lines345678910111213141516171821 unmodified lines40414243442 unmodified linesdef client_fn(model):if "Nous" in model:return InferenceClient("NousResearch/Nous-Hermes-2-Mixtral-8x7B-DPO")elif "Star" in model:return InferenceClient("HuggingFaceH4/starchat2-15b-v0.1")elif "Mistral" in model:return InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")elif "Phi" in model:return InferenceClient("microsoft/Phi-3-mini-4k-instruct")else:return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")system_instructions1 = "[SYSTEM] Your task is to Answer the question. Keep conversation very short, clear and concise. The expectation is that you will avoid introductions and start answering the query directly, Only answer the question asked by user, Do not say unnecessary things.[QUESTION]"21 unmodified linesdescription="""# Chat GO### Inspired from Google Go"""demo = gr.Interface(description=description,fn=models, inputs=["text", gr.Dropdown([ 'Mixtral 8x7B','Nous Hermes Mixtral 8x7B DPO','StarChat2 15b','Mistral 7B v0.3','Phi 3 mini', ], value="Mistral 7B v0.3", label="Select Model") ], outputs="text", live=True, batch=True, max_batch_size=1000)demo.launch()
app.py+6-6