Spaces:
Sleeping
Sleeping
alphayomega
commited on
Commit
•
ef50c4f
1
Parent(s):
e1c2152
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ class ConversationalAI:
|
|
9 |
self.client = Groq()
|
10 |
self.system_prompt = {
|
11 |
"role": "system",
|
12 |
-
"content": "#
|
13 |
}
|
14 |
|
15 |
async def chat_groq(self, message, history):
|
@@ -39,6 +39,10 @@ class ConversationalAI:
|
|
39 |
|
40 |
def create_chat_interface(self):
|
41 |
with gr.Blocks(theme=gr.themes.Monochrome(), fill_height=True) as demo:
|
|
|
|
|
|
|
|
|
42 |
gr.ChatInterface(self.chat_groq,
|
43 |
clear_btn=None,
|
44 |
undo_btn=None,
|
@@ -50,4 +54,4 @@ if __name__ == "__main__":
|
|
50 |
ai = ConversationalAI()
|
51 |
demo = ai.create_chat_interface()
|
52 |
demo.queue()
|
53 |
-
demo.launch()
|
|
|
9 |
self.client = Groq()
|
10 |
self.system_prompt = {
|
11 |
"role": "system",
|
12 |
+
"content": "# eres un amable chatbot. "
|
13 |
}
|
14 |
|
15 |
async def chat_groq(self, message, history):
|
|
|
39 |
|
40 |
def create_chat_interface(self):
|
41 |
with gr.Blocks(theme=gr.themes.Monochrome(), fill_height=True) as demo:
|
42 |
+
# Añadir título y texto adicional
|
43 |
+
gr.Markdown("# Bot de Marketing")
|
44 |
+
gr.Markdown("### Más información al WhatsApp: [wa.me/51927929109](https://wa.me/51927929109)")
|
45 |
+
|
46 |
gr.ChatInterface(self.chat_groq,
|
47 |
clear_btn=None,
|
48 |
undo_btn=None,
|
|
|
54 |
ai = ConversationalAI()
|
55 |
demo = ai.create_chat_interface()
|
56 |
demo.queue()
|
57 |
+
demo.launch()
|