iabualhaol commited on
Commit
14bf143
·
1 Parent(s): 89b0bb7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -7
app.py CHANGED
@@ -32,17 +32,16 @@ def 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")
37
  ],
38
- outputs=gr.outputs.Textbox(label="Summary"),
39
- live=True,
 
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()
47
-
48
-
 
32
  interface = gr.Interface(
33
  fn=summarize,
34
  inputs=[
35
+ gr.inputs.Textbox(label="API Key", type="password", lines=1),
36
+ gr.inputs.Textarea(label="Text to Summarize", lines=25)
37
  ],
38
+ outputs=gr.outputs.Textarea(label="Summary", lines=10),
39
+ live=False,
40
+ title="GPT-4 Summarizer",
41
  title="Ibrahim App : GPT4 One Paragraph Summary",
42
  description="Summarize text using GPT-4 in one Paragraph."
43
  )
44
  interface.launch()
45
 
46
  if __name__ == "__main__":
47
+ main()