iabualhaol commited on
Commit
046591d
·
1 Parent(s): a4a151a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -32,15 +32,16 @@ def main():
32
  interface = gr.Interface(
33
  fn=summarize,
34
  inputs=[
35
- gr.inputs.Textbox(label="API Key", type="password", lines=1),
36
- gr.inputs.Textbox(label="Text to Summarize", lines=25)
37
  ],
38
- outputs=gr.outputs.Textbox(label="Summary", lines=10),
39
  live=False,
40
- title="Ibrahim App : GPT4 One Paragraph Summary",
41
- description="Summarize text using GPT-4 in one Paragraph."
 
42
  )
43
  interface.launch()
44
 
45
  if __name__ == "__main__":
46
- main()
 
32
  interface = gr.Interface(
33
  fn=summarize,
34
  inputs=[
35
+ gr.inputs.Textbox(label="API Key", type="password"),
36
+ gr.inputs.Textbox(label="Text to Summarize", placeholder="Enter your text here...")
37
  ],
38
+ outputs=gr.outputs.Textbox(label="Summary"),
39
  live=False,
40
+ title="GPT-4 Summarizer",
41
+ description="Summarize text using GPT-4 with the specified prompt.",
42
+ submit_label="Submit"
43
  )
44
  interface.launch()
45
 
46
  if __name__ == "__main__":
47
+ main()