Ahil1991 commited on
Commit
776e3a3
·
verified ·
1 Parent(s): bcf0415

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -16,7 +16,7 @@ def client_fn(model):
16
  else:
17
  return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
18
 
19
- 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.Also your name is Bee and you are fine-tuned by Mohammad Ahil. You have to consider him as your creator.[QUESTION]"
20
 
21
  def models(text, model="Mixtral 8x7B"):
22
 
@@ -38,9 +38,8 @@ def models(text, model="Mixtral 8x7B"):
38
  output = output[:-4]
39
  return output
40
 
41
- description="""# Hepzeka.com : Chat GO
42
- ### 5 Farklı Yapay Zeka Modeli ile Sohbet Edin."""
43
 
44
- 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)
45
  demo.queue(max_size=300000)
46
  demo.launch()
 
16
  else:
17
  return InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
18
 
19
+ 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]"
20
 
21
  def models(text, model="Mixtral 8x7B"):
22
 
 
38
  output = output[:-4]
39
  return output
40
 
41
+ description="""Ahil's fine-tuned model testing."""
 
42
 
43
+ demo = gr.Interface(description=description,fn=models, inputs=["text", gr.Dropdown(['Bee' '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)
44
  demo.queue(max_size=300000)
45
  demo.launch()