Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def format_prompt(message, history):
|
|
12 |
return prompt
|
13 |
|
14 |
def generate(
|
15 |
-
prompt, history, system_prompt, temperature=0.
|
16 |
):
|
17 |
temperature = float(temperature)
|
18 |
if temperature < 1e-2:
|
@@ -40,7 +40,7 @@ def generate(
|
|
40 |
return output
|
41 |
|
42 |
mychatbot = gr.Chatbot(
|
43 |
-
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False,
|
44 |
|
45 |
demo = gr.ChatInterface(fn=generate,
|
46 |
chatbot=mychatbot,
|
|
|
12 |
return prompt
|
13 |
|
14 |
def generate(
|
15 |
+
prompt, history, system_prompt, temperature=0.3, max_new_tokens=256, top_p=0.9, repetition_penalty=1.0,
|
16 |
):
|
17 |
temperature = float(temperature)
|
18 |
if temperature < 1e-2:
|
|
|
40 |
return output
|
41 |
|
42 |
mychatbot = gr.Chatbot(
|
43 |
+
avatar_images=["./user.png", "./botm.png"], bubble_full_width=False, show_label=False, show_copy_button=True, likeable=True)
|
44 |
|
45 |
demo = gr.ChatInterface(fn=generate,
|
46 |
chatbot=mychatbot,
|