Kukedlc commited on
Commit
15fd008
1 Parent(s): 6bd78a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -95,17 +95,21 @@ gr.ChatInterface(
95
  predict,
96
  title=EMOJI + " " + MODEL_NAME,
97
  description=DESCRIPTION,
98
- examples=[
99
- ["¿Puedes resolver la ecuación 2x + 3 = 11 para x?"],
100
- ["Escribe un poema épico sobre la Antigua Roma."],
101
- ["¿Quién fue la primera persona en caminar sobre la Luna?"],
102
- ["Usa una comprensión de listas para crear una lista de cuadrados de los números del 1 al 10."],
103
- ["Recomienda algunos libros populares de ciencia ficción."],
104
- ["¿Puedes escribir una historia corta sobre un detective que viaja en el tiempo?"]
 
 
 
 
105
  ],
106
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False),
107
  additional_inputs=[
108
- gr.Textbox("Eres un modelo que responde de manera precisa en español.", label="System prompt"),
109
  gr.Slider(0, 1, 0.3, label="Temperature"),
110
  gr.Slider(128, 4096, 1024, label="Max new tokens"),
111
  gr.Slider(1, 80, 40, label="Top K sampling"),
 
95
  predict,
96
  title=EMOJI + " " + MODEL_NAME,
97
  description=DESCRIPTION,
98
+ examples=[
99
+ ["Can you solve the equation 2x + 3 = 11 for x in Python?"],
100
+ ["Write a Java program that checks if a number is even or odd."],
101
+ ["How can I reverse a string in JavaScript?"],
102
+ ["Create a C++ function to find the factorial of a number."],
103
+ ["Write a Python list comprehension to generate a list of squares of numbers from 1 to 10."],
104
+ ["How do I implement a binary search algorithm in C?"],
105
+ ["Write a Ruby script to read a file and count the number of lines in it."],
106
+ ["Create a Swift class to represent a bank account with deposit and withdrawal methods."],
107
+ ["How do I find the maximum element in an array using Kotlin?"],
108
+ ["Write a Rust program to generate the Fibonacci sequence up to the 10th number."]
109
  ],
110
  additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False),
111
  additional_inputs=[
112
+ gr.Textbox("You are a code assistant.", label="System prompt"),
113
  gr.Slider(0, 1, 0.3, label="Temperature"),
114
  gr.Slider(128, 4096, 1024, label="Max new tokens"),
115
  gr.Slider(1, 80, 40, label="Top K sampling"),