MefhigosetH commited on
Commit
577c694
1 Parent(s): 8d98824

feat(chatbot): Seteamos un nuevo System Prompt.

Browse files
Files changed (4) hide show
  1. .gitignore +2 -0
  2. Pipfile +13 -0
  3. README.md +2 -1
  4. app.py +1 -1
.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
- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
 
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="You are a friendly Chatbot.", 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(
 
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(