Spaces:
Running
Running
Commit
•
7266fca
1
Parent(s):
80938b1
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def format_prompt(message, history, system_prompt=None):
|
|
14 |
return prompt
|
15 |
|
16 |
def generate(
|
17 |
-
prompt, history, system_prompt=None, temperature=0.
|
18 |
):
|
19 |
temperature = float(temperature)
|
20 |
if temperature < 1e-2:
|
@@ -46,7 +46,7 @@ mychatbot = gr.Chatbot(
|
|
46 |
demo = gr.ChatInterface(
|
47 |
fn=generate,
|
48 |
chatbot=mychatbot,
|
49 |
-
title="
|
50 |
css="body { background-color: inherit; overflow-x:hidden;}"
|
51 |
":root {--color-accent: transparent !important; --color-accent-soft:transparent !important; --code-background-fill:black !important; --body-text-color:white !important;}"
|
52 |
"#component-2 {background:#ffffff1a; display:contents;}"
|
|
|
14 |
return prompt
|
15 |
|
16 |
def generate(
|
17 |
+
prompt, history, system_prompt=None, temperature=0.5, max_new_tokens=512, top_p=0.95, repetition_penalty=1.0,
|
18 |
):
|
19 |
temperature = float(temperature)
|
20 |
if temperature < 1e-2:
|
|
|
46 |
demo = gr.ChatInterface(
|
47 |
fn=generate,
|
48 |
chatbot=mychatbot,
|
49 |
+
title="Olá, eu sou o TSM 3.5 em que posso ajudar?",
|
50 |
css="body { background-color: inherit; overflow-x:hidden;}"
|
51 |
":root {--color-accent: transparent !important; --color-accent-soft:transparent !important; --code-background-fill:black !important; --body-text-color:white !important;}"
|
52 |
"#component-2 {background:#ffffff1a; display:contents;}"
|