sablab commited on
Commit
df44167
·
verified ·
1 Parent(s): bd52a05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -18,6 +18,7 @@ def generate(prompt, history, system_prompt, temperature=0.9, max_new_tokens=160
18
  , top_p=0.95, repetition_penalty
19
  =1.0,):
20
 
 
21
  temperature = float(temperature)
22
  if temperature < 1e-2:
23
  temperature = 1e-2
@@ -97,4 +98,4 @@ gr.ChatInterface(
97
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
98
  additional_inputs=additional_inputs,
99
  title="Mistral 7B Instruct",
100
- ).launch(show_api=True, share=True)
 
18
  , top_p=0.95, repetition_penalty
19
  =1.0,):
20
 
21
+
22
  temperature = float(temperature)
23
  if temperature < 1e-2:
24
  temperature = 1e-2
 
98
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
99
  additional_inputs=additional_inputs,
100
  title="Mistral 7B Instruct",
101
+ ).launch(show_api=True, show_error=True)