Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ print("Model server is ready!")
|
|
30 |
|
31 |
def response(message, history):
|
32 |
url = "http://localhost:2600/v1/completions"
|
33 |
-
body = {"prompt": "[INST]"+message+"[/INST]", "max_tokens":
|
34 |
response_text = ""
|
35 |
|
36 |
try:
|
@@ -68,7 +68,7 @@ def cleanup_server():
|
|
68 |
# Configurar y lanzar la interfaz de Gradio
|
69 |
gr_interface = gr.ChatInterface(
|
70 |
fn=response,
|
71 |
-
title="NeuralBeagle 14
|
72 |
theme='syddharth/gray-minimal'
|
73 |
)
|
74 |
|
|
|
30 |
|
31 |
def response(message, history):
|
32 |
url = "http://localhost:2600/v1/completions"
|
33 |
+
body = {"prompt": "[INST]"+message+"[/INST]", "max_tokens": 300, "echo": False, "stream": False}
|
34 |
response_text = ""
|
35 |
|
36 |
try:
|
|
|
68 |
# Configurar y lanzar la interfaz de Gradio
|
69 |
gr_interface = gr.ChatInterface(
|
70 |
fn=response,
|
71 |
+
title="NeuralBeagle 14-7b - By Maxime Labonne ❤️",
|
72 |
theme='syddharth/gray-minimal'
|
73 |
)
|
74 |
|