devendergarg14 commited on
Commit
0d66eb8
1 Parent(s): 5bae3bb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -12,4 +12,11 @@ def query(input_sentence,num,start):
12
  return '\n\n'.join([i for i in string3[0:]])
13
  title = "Paraphrasing"
14
  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."
15
- gr.Interface(fn=query, inputs=[gr.inputs.Textbox(lines=4, label="Input Text (Single Sentence)"),gr.inputs.Slider( minimum=1, maximum=5, step=1, default=2, label="Numbers of Outputs"),gr.inputs.Textbox(lines=1, label="Starting Point (optional)")],outputs=["text"],title=title,description=description,enable_queue=True).launch()
 
 
 
 
 
 
 
 
12
  return '\n\n'.join([i for i in string3[0:]])
13
  title = "Paraphrasing"
14
  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."
15
+ article = "<p style='text-align: center'><a href='https://github.com/EleutherAI/gpt-neo'>GPT-NEO GitHub</a></p>"
16
+ gr.Interface(fn=query, inputs=[gr.inputs.Textbox(lines=4, label="Input Text (Single Sentence)"),
17
+ gr.inputs.Slider( minimum=1, maximum=5, step=1, default=2, label="Numbers of Outputs"),
18
+ gr.inputs.Textbox(lines=1, label="Starting Point (optional)")],
19
+ outputs=["text"],
20
+ title=title,description=description,
21
+ article= article,
22
+ enable_queue=True).launch()