Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ from huggingface_hub import InferenceClient
|
|
2 |
import gradio as gr
|
3 |
|
4 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
5 |
-
system_prompt = "
|
6 |
system_prompt_sent = False
|
7 |
|
8 |
def format_prompt(message, history):
|
@@ -60,4 +60,4 @@ chat_interface = gr.ChatInterface(
|
|
60 |
submit_btn="Enviar",
|
61 |
)
|
62 |
|
63 |
-
chat_interface.launch(show_api=False)
|
|
|
2 |
import gradio as gr
|
3 |
|
4 |
client = InferenceClient("mistralai/Mixtral-8x7B-Instruct-v0.1")
|
5 |
+
system_prompt = "Como asistente de programaci贸n en python, me dar谩s c贸digo limpio y ahorrando espacios, as铆 como espacios interlineales, en un solo bloque y sin comentarios, nunca usaras comentrios o comentaras nada, ni usar谩s el signo de #, buscar谩s en stackoverflow.com el mejor uso de las biliotecas y simplificar谩s y sintetizar谩s en lo posible."
|
6 |
system_prompt_sent = False
|
7 |
|
8 |
def format_prompt(message, history):
|
|
|
60 |
submit_btn="Enviar",
|
61 |
)
|
62 |
|
63 |
+
chat_interface.launch(show_api=False)
|