Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -95,17 +95,21 @@ gr.ChatInterface(
|
|
95 |
predict,
|
96 |
title=EMOJI + " " + MODEL_NAME,
|
97 |
description=DESCRIPTION,
|
98 |
-
|
99 |
-
["
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
|
|
|
|
|
|
|
|
105 |
],
|
106 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False),
|
107 |
additional_inputs=[
|
108 |
-
gr.Textbox("
|
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"),
|