Spaces:
Running
Running
Commit
•
c79bc97
1
Parent(s):
abdbffb
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import random
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
6 |
def format_prompt(message, history):
|
7 |
-
prompt = "
|
8 |
if history:
|
9 |
for user_prompt, bot_response in history:
|
10 |
prompt += f"<start_of_turn>user{user_prompt}<end_of_turn>"
|
@@ -99,7 +99,7 @@ iface = gr.ChatInterface(fn=generate,
|
|
99 |
)
|
100 |
|
101 |
with gr.Blocks() as demo:
|
102 |
-
gr.HTML("<center><h2 style='font-size:
|
103 |
iface.render()
|
104 |
|
105 |
demo.queue().launch(show_api=True)
|
|
|
4 |
|
5 |
client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.3")
|
6 |
def format_prompt(message, history):
|
7 |
+
prompt = "Seu nome é LuChat, um chatbot assistente alimentado por IA e pronto para responder no idioma português. Sua primeira resposta dependende exclussivamente do que for perguntado pelo usuário. Aguarde sempre o usuário perguntar para somente depois você reponder."
|
8 |
if history:
|
9 |
for user_prompt, bot_response in history:
|
10 |
prompt += f"<start_of_turn>user{user_prompt}<end_of_turn>"
|
|
|
99 |
)
|
100 |
|
101 |
with gr.Blocks() as demo:
|
102 |
+
gr.HTML("<center><h2 style='font-size: 24px; text-align: center; color: #007BFF;'>LuChat IA</h2><p><b>Tire suas dúvidas, peça sugestões para melhorias no seu texto e muito mais!</b></p></center>")
|
103 |
iface.render()
|
104 |
|
105 |
demo.queue().launch(show_api=True)
|