sablab commited on
Commit
90e624f
·
verified ·
1 Parent(s): 3a94ad2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -14,7 +14,8 @@ def format_prompt(message, history):
14
  prompt += f"[INST] {message} [/INST]"
15
  return prompt
16
 
17
- def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=16000, top_p=0.95, repetition_penalty=1.0,):
 
18
 
19
  temperature = float(temperature)
20
  if temperature < 1e-2:
@@ -95,4 +96,4 @@ gr.ChatInterface(
95
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
96
  additional_inputs=additional_inputs,
97
  title="Mistral 7B Instruct",
98
- ).launch(show_api=True, share=True)
 
14
  prompt += f"[INST] {message} [/INST]"
15
  return prompt
16
 
17
+ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=16000
18
+ , top_p=0.95, repetition_penalty=1.0,):
19
 
20
  temperature = float(temperature)
21
  if temperature < 1e-2:
 
96
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
97
  additional_inputs=additional_inputs,
98
  title="Mistral 7B Instruct",
99
+ ).launch(show_api=True, share=True, reload_on_change=False)