Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -31,8 +31,6 @@ def pdfSummarizer(gemini_api_key, pdf_file, kind):
|
|
31 |
|
32 |
return response.text
|
33 |
|
34 |
-
import gradio as gr
|
35 |
-
|
36 |
with gr.Blocks(
|
37 |
theme="gstaff/whiteboard",
|
38 |
title="PDF Summarizer",
|
@@ -56,6 +54,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,"5 Bullet Points",""],inputs=
|
60 |
|
61 |
app.launch()
|
|
|
31 |
|
32 |
return response.text
|
33 |
|
|
|
|
|
34 |
with gr.Blocks(
|
35 |
theme="gstaff/whiteboard",
|
36 |
title="PDF Summarizer",
|
|
|
54 |
out = gr.Markdown()
|
55 |
|
56 |
btn.click(fn=pdfSummarizer, inputs=[api_key, pdf_file, summary_type], outputs=out)
|
57 |
+
clear_btn.click(lambda: [None,None,"5 Bullet Points",""],inputs=[],outputs=[api_key, pdf_file, summary_type, out],queue=False)
|
58 |
|
59 |
app.launch()
|