Spaces:
Runtime error
Runtime error
osanseviero
commited on
Commit
•
ebb9e6f
1
Parent(s):
f3fece9
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ hf_writer = gr.HuggingFaceDatasetSaver(HF_API_TOKEN, "huggingface/bloom_internal
|
|
14 |
|
15 |
|
16 |
examples = [
|
17 |
-
['A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is: We were traveling in Africa and we saw these very cute whatpus. To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:']
|
18 |
]
|
19 |
|
20 |
def safe_text(text):
|
@@ -47,6 +47,7 @@ gr.Interface(
|
|
47 |
[
|
48 |
gr.inputs.Textbox(label="Input"),
|
49 |
gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
|
|
|
50 |
gr.inputs.Slider(0, 64, default=0, label="Top K"),
|
51 |
gr.inputs.Slider(0.0, 10, default=0.9, step=0.05, label="Top P"),
|
52 |
gr.inputs.Checkbox(False, label="Greedy decoding"),
|
|
|
14 |
|
15 |
|
16 |
examples = [
|
17 |
+
['A "whatpu" is a small, furry animal native to Tanzania. An example of a sentence that uses the word whatpu is: We were traveling in Africa and we saw these very cute whatpus. To do a "farduddle" means to jump up and down really fast. An example of a sentence that uses the word farduddle is:', 8, 0.1, 0, 0.9, False]
|
18 |
]
|
19 |
|
20 |
def safe_text(text):
|
|
|
47 |
[
|
48 |
gr.inputs.Textbox(label="Input"),
|
49 |
gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
|
50 |
+
gr.inputs.Slider(0.0, 1.0, default=0.1, step=0.05, label="Temperature"),
|
51 |
gr.inputs.Slider(0, 64, default=0, label="Top K"),
|
52 |
gr.inputs.Slider(0.0, 10, default=0.9, step=0.05, label="Top P"),
|
53 |
gr.inputs.Checkbox(False, label="Greedy decoding"),
|