Spaces:
Sleeping
Sleeping
Commit
·
25a6c87
1
Parent(s):
28ea38b
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ def format_prompt(message, history):
|
|
14 |
return prompt
|
15 |
|
16 |
def generate(
|
17 |
-
prompt, history, system_prompt="Soy Maya 3.0 tu asistente experto:
|
18 |
):
|
19 |
global system_prompt_set
|
20 |
|
@@ -45,7 +45,7 @@ chat_interface = gr.ChatInterface(
|
|
45 |
fn=generate,
|
46 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel", height=700),
|
47 |
concurrency_limit=2,
|
48 |
-
theme="
|
49 |
retry_btn=None,
|
50 |
undo_btn=None,
|
51 |
clear_btn=None,
|
|
|
14 |
return prompt
|
15 |
|
16 |
def generate(
|
17 |
+
prompt, history, system_prompt="Soy Maya 3.0 tu asistente experto: abogacía, historia, economía, medicina, terapia, nutriología, filosofía, sicología, ecología y programación", temperature=0.9, max_new_tokens=2048, top_p=0.95, repetition_penalty=1.0,
|
18 |
):
|
19 |
global system_prompt_set
|
20 |
|
|
|
45 |
fn=generate,
|
46 |
chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel", height=700),
|
47 |
concurrency_limit=2,
|
48 |
+
theme="soft",
|
49 |
retry_btn=None,
|
50 |
undo_btn=None,
|
51 |
clear_btn=None,
|