Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,11 +14,6 @@ def generate(text,max_length,temperature,num_beams,top_k,top_p,repetition_penalt
|
|
14 |
no_repeat_ngram_size=2,early_stopping=False)
|
15 |
return result[0]["generated_text"],result[1]["generated_text"],result[2]["generated_text"]
|
16 |
|
17 |
-
examples = [
|
18 |
-
["Hello, I am a cat."],
|
19 |
-
["Look, this is my cat."],
|
20 |
-
]
|
21 |
-
|
22 |
demo = gr.Interface(
|
23 |
fn=generate,
|
24 |
inputs=[
|
@@ -35,7 +30,6 @@ demo = gr.Interface(
|
|
35 |
gr.Textbox(label="Generated Text 1"),
|
36 |
gr.Textbox(label="Generated Text 2"),
|
37 |
gr.Textbox(label="Generated Text 3")],
|
38 |
-
examples=examples,
|
39 |
title = "Text Generator GPT2 Pipeline",
|
40 |
description = "Text Generator. \n Temperature control randomness, lowering results in less random completions. As approach the zero, the model becomes more repetitive."
|
41 |
)
|
|
|
14 |
no_repeat_ngram_size=2,early_stopping=False)
|
15 |
return result[0]["generated_text"],result[1]["generated_text"],result[2]["generated_text"]
|
16 |
|
|
|
|
|
|
|
|
|
|
|
17 |
demo = gr.Interface(
|
18 |
fn=generate,
|
19 |
inputs=[
|
|
|
30 |
gr.Textbox(label="Generated Text 1"),
|
31 |
gr.Textbox(label="Generated Text 2"),
|
32 |
gr.Textbox(label="Generated Text 3")],
|
|
|
33 |
title = "Text Generator GPT2 Pipeline",
|
34 |
description = "Text Generator. \n Temperature control randomness, lowering results in less random completions. As approach the zero, the model becomes more repetitive."
|
35 |
)
|