shivambhosale commited on
Commit
e79ccab
·
verified ·
1 Parent(s): 79e1c8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -14,11 +14,11 @@ iface = gr.Interface(
14
  fn=summarize_article,
15
  inputs=[
16
  "text",
17
- gr.inputs.Dropdown(["Falconsai/text_summarization", "Other Models..."], label="Select Model"),
18
- gr.inputs.Number(default=100, label="Max-Length"),
19
- gr.inputs.Slider(minimum=0.1, maximum=1.999, default=0.7, label="Temperature"),
20
- gr.inputs.Number(default=50, label="Top-k"),
21
- gr.inputs.Number(default=0.9, label="Top-p")
22
  ],
23
  outputs="text",
24
  title="Text Summarization with Hyperparameters",
 
14
  fn=summarize_article,
15
  inputs=[
16
  "text",
17
+ gr.Dropdown(["Falconsai/text_summarization", "Other Models..."], label="Select Model"),
18
+ gr.Slider(minimum=10, maximum=200, default=100, label="Max-Length"),
19
+ gr.Slider(minimum=0.1, maximum=2, default=0.7, label="Temperature"),
20
+ gr.Slider(minimum=1, maximum=100, default=50, label="Top-k"),
21
+ gr.Slider(minimum=0.1, maximum=1, default=0.9, label="Top-p")
22
  ],
23
  outputs="text",
24
  title="Text Summarization with Hyperparameters",