Spaces:
Running
Running
Update app.py
Browse files
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:
|
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()
|