Ifeanyi commited on
Commit
72d3fc8
·
verified ·
1 Parent(s): 21bf8f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ with gr.Blocks(
44
 
45
  api_key = gr.Text(label="Gemini API Key", placeholder="Enter your Google Gemini API key here"),
46
  pdf_file = gr.File(file_types=[".pdf"]),
47
- summary_type = gr.Radio(["5 Bullet Points","10 Bullet Points", "Paragraph", "Sentence"], label="Select Summary Kind")
48
 
49
  with gr.Column():
50
  with gr.Row():
@@ -56,6 +56,6 @@ with gr.Blocks(
56
  out = gr.Markdown()
57
 
58
  btn.click(fn=pdfSummarizer, inputs=[api_key, pdf_file, summary_type], outputs=out)
59
- clear_btn.click(lambda: (None,None,None,""),inputs=[],outputs=[api_key, pdf_file, summary_type, out],queue=False)
60
 
61
  app.launch()
 
44
 
45
  api_key = gr.Text(label="Gemini API Key", placeholder="Enter your Google Gemini API key here"),
46
  pdf_file = gr.File(file_types=[".pdf"]),
47
+ summary_type = gr.Radio(["5 Bullet Points","10 Bullet Points", "Paragraph", "Sentence"],value = "5 Bullet Points", label="Select Summary Kind")
48
 
49
  with gr.Column():
50
  with gr.Row():
 
56
  out = gr.Markdown()
57
 
58
  btn.click(fn=pdfSummarizer, inputs=[api_key, pdf_file, summary_type], outputs=out)
59
+ clear_btn.click(lambda: [None,None,"5 Bullet Points",""],inputs=None,outputs=[api_key, pdf_file, summary_type, out],queue=False)
60
 
61
  app.launch()