Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -89,11 +89,11 @@ def evaluate(
|
|
89 |
yield out_str.strip()
|
90 |
|
91 |
examples = [
|
92 |
-
["Tell me about ravens.", "", 200, 1.0, 0.
|
93 |
-
["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.
|
94 |
-
["Write a python function to read data from an excel file.", "", 200, 1.0, 0.
|
95 |
-
["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.
|
96 |
-
["What are the colors of these things?", "sun, moon, apple", 200, 1.0, 0.
|
97 |
]
|
98 |
|
99 |
g = gr.Interface(
|
@@ -103,9 +103,9 @@ g = gr.Interface(
|
|
103 |
gr.components.Textbox(lines=2, label="Input", placeholder="none"),
|
104 |
gr.components.Slider(minimum=10, maximum=250, step=10, value=200), # token_count
|
105 |
gr.components.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0), # temperature
|
106 |
-
gr.components.Slider(minimum=0, maximum=1, step=0.05, value=0.
|
107 |
-
gr.components.Slider(0.0, 1.0, step=0.1, value=0.
|
108 |
-
gr.components.Slider(0.0, 1.0, step=0.1, value=0.
|
109 |
],
|
110 |
outputs=[
|
111 |
gr.inputs.Textbox(
|
|
|
89 |
yield out_str.strip()
|
90 |
|
91 |
examples = [
|
92 |
+
["Tell me about ravens.", "", 200, 1.0, 0.5, 0.3, 0.3],
|
93 |
+
["Explain the following metaphor: Life is like cats.", "", 200, 1.0, 0.5, 0.3, 0.3],
|
94 |
+
["Write a python function to read data from an excel file.", "", 200, 1.0, 0.5, 0.3, 0.3],
|
95 |
+
["Generate a list of adjectives that describe a person as brave.", "", 200, 1.0, 0.5, 0.3, 0.3],
|
96 |
+
["What are the colors of these things?", "sun, moon, apple", 200, 1.0, 0.5, 0.3, 0.3],
|
97 |
]
|
98 |
|
99 |
g = gr.Interface(
|
|
|
103 |
gr.components.Textbox(lines=2, label="Input", placeholder="none"),
|
104 |
gr.components.Slider(minimum=10, maximum=250, step=10, value=200), # token_count
|
105 |
gr.components.Slider(minimum=0.2, maximum=2.0, step=0.1, value=1.0), # temperature
|
106 |
+
gr.components.Slider(minimum=0, maximum=1, step=0.05, value=0.5), # top_p
|
107 |
+
gr.components.Slider(0.0, 1.0, step=0.1, value=0.3), # presencePenalty
|
108 |
+
gr.components.Slider(0.0, 1.0, step=0.1, value=0.3), # countPenalty
|
109 |
],
|
110 |
outputs=[
|
111 |
gr.inputs.Textbox(
|