Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,9 +59,22 @@ with gr.Blocks(
|
|
| 59 |
with gr.Sidebar(visible=False):
|
| 60 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h3>📓 PDF Summarizer 📓</h3></div>")
|
| 61 |
gr.HTML("<br>")
|
| 62 |
-
gr.HTML("
|
| 63 |
-
|
| 64 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h4>Gemini API Key</h4></div>")
|
| 66 |
api_key = gr.Text(label = "",placeholder="Enter your Google Gemini API key here")
|
| 67 |
|
|
|
|
| 59 |
with gr.Sidebar(visible=False):
|
| 60 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h3>📓 PDF Summarizer 📓</h3></div>")
|
| 61 |
gr.HTML("<br>")
|
| 62 |
+
gr.HTML("""
|
| 63 |
+
<script src='https://cdn.jsdelivr.net/npm/sweetalert2@11.15.10/dist/sweetalert2.all.min.js'></script>
|
| 64 |
+
<link href='https://cdn.jsdelivr.net/npm/sweetalert2@11.15.10/dist/sweetalert2.min.css' rel='stylesheet'>
|
| 65 |
+
""")
|
| 66 |
+
|
| 67 |
+
# Button with JS Event
|
| 68 |
+
gr.HTML("""
|
| 69 |
+
<button onclick="Swal.fire({
|
| 70 |
+
title: 'How To Use',
|
| 71 |
+
text: 'Enter your Gemini API key, upload PDF document, select summary kind, then hit the summarize button',
|
| 72 |
+
icon: 'info'
|
| 73 |
+
});" style="padding: 10px; background-color: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">
|
| 74 |
+
Info
|
| 75 |
+
</button>
|
| 76 |
+
""")
|
| 77 |
+
|
| 78 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h4>Gemini API Key</h4></div>")
|
| 79 |
api_key = gr.Text(label = "",placeholder="Enter your Google Gemini API key here")
|
| 80 |
|