Spaces:
Sleeping
Sleeping
Commit
·
67f9dba
1
Parent(s):
f4b8d9c
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def format_prompt(message, history):
|
|
| 11 |
for user_prompt, bot_response in history:
|
| 12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 13 |
prompt += f" {bot_response}</s> "
|
| 14 |
-
prompt += f"[INST] {message} P.S. Ripondi come se fossi
|
| 15 |
return prompt
|
| 16 |
|
| 17 |
def generate(
|
|
@@ -46,9 +46,10 @@ mychatbot = gr.Chatbot(
|
|
| 46 |
|
| 47 |
demo = gr.ChatInterface(fn=generate,
|
| 48 |
chatbot=mychatbot,
|
| 49 |
-
title="
|
| 50 |
retry_btn=None,
|
| 51 |
-
undo_btn=None
|
|
|
|
| 52 |
)
|
| 53 |
|
| 54 |
demo.queue().launch(show_api=True)
|
|
|
|
| 11 |
for user_prompt, bot_response in history:
|
| 12 |
prompt += f"[INST] {user_prompt} [/INST]"
|
| 13 |
prompt += f" {bot_response}</s> "
|
| 14 |
+
prompt += f"[INST] {message} P.S. Ripondi come se fossi Zucchetti AI, l'assitente AI di Zucchetti e... inserisci una soluzione alla volta! [/INST]"
|
| 15 |
return prompt
|
| 16 |
|
| 17 |
def generate(
|
|
|
|
| 46 |
|
| 47 |
demo = gr.ChatInterface(fn=generate,
|
| 48 |
chatbot=mychatbot,
|
| 49 |
+
title="Zucchetti AI",
|
| 50 |
retry_btn=None,
|
| 51 |
+
undo_btn=None,
|
| 52 |
+
theme="gradio/soft"
|
| 53 |
)
|
| 54 |
|
| 55 |
demo.queue().launch(show_api=True)
|