KingNish commited on
Commit
48dc1ec
1 Parent(s): 689f27c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -12,7 +12,7 @@ def client_fn(model):
12
  elif "Phi" in model:
13
  return InferenceClient("microsoft/Phi-3-mini-4k-instruct")
14
  else:
15
- return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
16
 
17
  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]"
18
 
@@ -36,9 +36,8 @@ def models(text, model="Mixtral 8x7B"):
36
  output = output[:-4]
37
  return output
38
 
39
- description="""# Chat GO
40
- ### Inspired from Google Go"""
41
 
42
- 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=10000)
43
  demo.queue(max_size=300000)
44
  demo.launch()
 
12
  elif "Phi" in model:
13
  return InferenceClient("microsoft/Phi-3-mini-4k-instruct")
14
  else:
15
+ return InferenceClient("google/gemma-1.1-2b-it")
16
 
17
  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]"
18
 
 
36
  output = output[:-4]
37
  return output
38
 
39
+ description="# Chat GO"
 
40
 
41
+ 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', 'FASTEST' ], value="FASTEST", label="Select Model") ], outputs="text", live=True, batch=True, max_batch_size=10000)
42
  demo.queue(max_size=300000)
43
  demo.launch()