Spaces:
Sleeping
Sleeping
jcmachicao
commited on
Commit
•
7c3b06f
1
Parent(s):
39bbaf6
Update app.py
Browse files
app.py
CHANGED
@@ -40,7 +40,7 @@ def respond(
|
|
40 |
yield response
|
41 |
|
42 |
"""
|
43 |
-
|
44 |
"""
|
45 |
|
46 |
especificacion = 'Eres un experto en la Ley del Sistema de Recursos Humanos de Perú, sobre todo en conflictos para el personal de las agencias públicas'
|
@@ -49,15 +49,8 @@ demo = gr.ChatInterface(
|
|
49 |
respond,
|
50 |
additional_inputs=[
|
51 |
gr.Textbox(value=especificacion, label="System message"),
|
52 |
-
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max
|
53 |
-
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="
|
54 |
-
gr.Slider(
|
55 |
-
minimum=0.1,
|
56 |
-
maximum=1.0,
|
57 |
-
value=0.95,
|
58 |
-
step=0.05,
|
59 |
-
label="Top-p (nucleus sampling)",
|
60 |
-
),
|
61 |
],
|
62 |
)
|
63 |
|
|
|
40 |
yield response
|
41 |
|
42 |
"""
|
43 |
+
Para Editar el ChatInterface docs: https://www.gradio.app/docs/chatinterface
|
44 |
"""
|
45 |
|
46 |
especificacion = 'Eres un experto en la Ley del Sistema de Recursos Humanos de Perú, sobre todo en conflictos para el personal de las agencias públicas'
|
|
|
49 |
respond,
|
50 |
additional_inputs=[
|
51 |
gr.Textbox(value=especificacion, label="System message"),
|
52 |
+
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max nuevos tokens"),
|
53 |
+
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperatura"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
],
|
55 |
)
|
56 |
|