Spaces:
Runtime error
Runtime error
fix TypeError: launch() got an unexpected keyword argument cache_examples
Browse files
app.py
CHANGED
@@ -21,12 +21,12 @@ title = "Paraphrasing with GPT-NEO"
|
|
21 |
description = "Gradio Demo for Paraphrasing with GPT-NEO. Simply add one line sentence in the Input. It is possible to control the start of output paraphrased sentences using optional Starting Point Input. If outputs are not satisfactory try to increase number of outputs"
|
22 |
article = "<div style='text-align: center;'><a href='https://github.com/EleutherAI/gpt-neo'>GPT-NEO GitHub</a> | <center><img src='https://visitor-badge.glitch.me/badge?page_id=devendergarg14_Paraphrasing_with_GPT_Neo' alt='visitor badge'></center></div>"
|
23 |
examples=[['The sky, at sunset, looked like a carnivorous flower.',4,'The coloured reddish'],['Inside us there is something that has no name, that something is what we are.',4,'']]
|
|
|
24 |
gr.Interface(fn=query, inputs=[gr.inputs.Textbox(lines=4, label="Input Text (Single Sentence)"),
|
25 |
-
gr.inputs.Slider( minimum=1, maximum=10, step=1, default=4, label="Numbers of Outputs"),
|
26 |
-
gr.inputs.Textbox(lines=1, label="Starting Point (optional)")],
|
27 |
-
outputs=["text"],
|
28 |
-
title=title,description=description,
|
29 |
-
article= article,
|
30 |
-
examples=examples,
|
31 |
-
allow_flagging='never').launch(enable_queue=True,
|
32 |
-
cache_examples=True)
|
|
|
21 |
description = "Gradio Demo for Paraphrasing with GPT-NEO. Simply add one line sentence in the Input. It is possible to control the start of output paraphrased sentences using optional Starting Point Input. If outputs are not satisfactory try to increase number of outputs"
|
22 |
article = "<div style='text-align: center;'><a href='https://github.com/EleutherAI/gpt-neo'>GPT-NEO GitHub</a> | <center><img src='https://visitor-badge.glitch.me/badge?page_id=devendergarg14_Paraphrasing_with_GPT_Neo' alt='visitor badge'></center></div>"
|
23 |
examples=[['The sky, at sunset, looked like a carnivorous flower.',4,'The coloured reddish'],['Inside us there is something that has no name, that something is what we are.',4,'']]
|
24 |
+
|
25 |
gr.Interface(fn=query, inputs=[gr.inputs.Textbox(lines=4, label="Input Text (Single Sentence)"),
|
26 |
+
gr.inputs.Slider( minimum=1, maximum=10, step=1, default=4, label="Numbers of Outputs"),
|
27 |
+
gr.inputs.Textbox(lines=1, label="Starting Point (optional)")],
|
28 |
+
outputs=["text"],
|
29 |
+
title=title,description=description,
|
30 |
+
article= article,
|
31 |
+
examples=examples,
|
32 |
+
allow_flagging='never').launch(enable_queue=True) # ? ,cache_examples=True)
|
|