Spaces:
Sleeping
Sleeping
Peter
commited on
Commit
•
0078f3c
1
Parent(s):
9b3e02d
debug
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def load_examples(examples_dir="examples"):
|
|
118 |
for example in examples:
|
119 |
with open(example, "r") as f:
|
120 |
text = f.read()
|
121 |
-
text_examples.append([text, 4, 0.7,
|
122 |
|
123 |
return text_examples
|
124 |
|
@@ -136,7 +136,7 @@ if __name__ == "__main__":
|
|
136 |
inputs=[
|
137 |
gr.inputs.Textbox(lines=10, label="input text"),
|
138 |
gr.inputs.Slider(
|
139 |
-
minimum=
|
140 |
),
|
141 |
gr.inputs.Slider(
|
142 |
minimum=512, maximum=4096, label="token_batch_length", default=2048, step=512,
|
|
|
118 |
for example in examples:
|
119 |
with open(example, "r") as f:
|
120 |
text = f.read()
|
121 |
+
text_examples.append([text, 4, 2048, 0.7, 3.5, 3])
|
122 |
|
123 |
return text_examples
|
124 |
|
|
|
136 |
inputs=[
|
137 |
gr.inputs.Textbox(lines=10, label="input text"),
|
138 |
gr.inputs.Slider(
|
139 |
+
minimum=1, maximum=8, label="num_beams", default=4, step=1
|
140 |
),
|
141 |
gr.inputs.Slider(
|
142 |
minimum=512, maximum=4096, label="token_batch_length", default=2048, step=512,
|