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.", "",
|
93 |
-
["Explain the following metaphor: Life is like cats.", "",
|
94 |
-
["Write a python function to read data from an excel file.", "",
|
95 |
-
["Generate a list of adjectives that describe a person as brave.", "",
|
96 |
-
["What are the colors of these things?", "sun, moon, apple",
|
97 |
]
|
98 |
|
99 |
g = gr.Interface(
|
@@ -101,11 +101,11 @@ g = gr.Interface(
|
|
101 |
inputs=[
|
102 |
gr.components.Textbox(lines=2, label="Instruction", value="Tell me about ravens."),
|
103 |
gr.components.Textbox(lines=2, label="Input", placeholder="none"),
|
104 |
-
gr.components.Slider(minimum=10, maximum=
|
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.
|
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.", "", 150, 1.0, 0.5, 0.4, 0.4],
|
93 |
+
["Explain the following metaphor: Life is like cats.", "", 150, 1.0, 0.5, 0.4, 0.4],
|
94 |
+
["Write a python function to read data from an excel file.", "", 150, 1.0, 0.5, 0.2, 0.2],
|
95 |
+
["Generate a list of adjectives that describe a person as brave.", "", 150, 1.0, 0.5, 0.4, 0.4],
|
96 |
+
["What are the colors of these things?", "sun, moon, apple", 150, 1.0, 0.5, 0.4, 0.4],
|
97 |
]
|
98 |
|
99 |
g = gr.Interface(
|
|
|
101 |
inputs=[
|
102 |
gr.components.Textbox(lines=2, label="Instruction", value="Tell me about ravens."),
|
103 |
gr.components.Textbox(lines=2, label="Input", placeholder="none"),
|
104 |
+
gr.components.Slider(minimum=10, maximum=200, step=10, value=150), # 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.4), # presencePenalty
|
108 |
+
gr.components.Slider(0.0, 1.0, step=0.1, value=0.4), # countPenalty
|
109 |
],
|
110 |
outputs=[
|
111 |
gr.inputs.Textbox(
|