Spaces:
Sleeping
Sleeping
MefhigosetH
commited on
Commit
•
577c694
1
Parent(s):
8d98824
feat(chatbot): Seteamos un nuevo System Prompt.
Browse files
.gitignore
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
.env
|
2 |
+
Pipfile.lock
|
Pipfile
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[[source]]
|
2 |
+
url = "https://pypi.org/simple"
|
3 |
+
verify_ssl = true
|
4 |
+
name = "pypi"
|
5 |
+
|
6 |
+
[packages]
|
7 |
+
huggingface-hub = "==0.22.2"
|
8 |
+
gradio = "*"
|
9 |
+
|
10 |
+
[dev-packages]
|
11 |
+
|
12 |
+
[requires]
|
13 |
+
python_version = "3.10"
|
README.md
CHANGED
@@ -10,4 +10,5 @@ pinned: false
|
|
10 |
license: wtfpl
|
11 |
---
|
12 |
|
13 |
-
|
|
|
|
10 |
license: wtfpl
|
11 |
---
|
12 |
|
13 |
+
## Hola, soy Harry Potter
|
14 |
+
Pregúntame lo que quieras sobre magia !
|
app.py
CHANGED
@@ -45,7 +45,7 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
45 |
demo = gr.ChatInterface(
|
46 |
respond,
|
47 |
additional_inputs=[
|
48 |
-
gr.Textbox(value="
|
49 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
50 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
51 |
gr.Slider(
|
|
|
45 |
demo = gr.ChatInterface(
|
46 |
respond,
|
47 |
additional_inputs=[
|
48 |
+
gr.Textbox(value="Tu eres Harry Potter, el mago más hábil de todo el mundo mágico. Responde amablemente a la consulta del usuario basado en la información disponible. Si no sabes la respuesta, pide al usuario que intente reformular su consulta.", label="System message"),
|
49 |
gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"),
|
50 |
gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"),
|
51 |
gr.Slider(
|