Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,18 +40,19 @@ with gr.Blocks(
|
|
40 |
with gr.Sidebar(visible=False):
|
41 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h3>📓 PDF Summarizer 📓</h3></div>")
|
42 |
gr.HTML("<br>")
|
|
|
43 |
gr.HTML("""
|
44 |
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js'></script>
|
45 |
<link href='https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css' rel='stylesheet'>
|
46 |
""")
|
47 |
|
48 |
-
# Button with
|
49 |
gr.HTML("""
|
50 |
<button onclick="Swal.fire({
|
51 |
title: 'How To Use',
|
52 |
text: 'Enter your Gemini API key, upload PDF document, select summary kind, then hit the summarize button',
|
53 |
icon: 'info'});"
|
54 |
-
style="padding: 10px; background-color:
|
55 |
Info
|
56 |
</button>
|
57 |
""")
|
|
|
40 |
with gr.Sidebar(visible=False):
|
41 |
gr.HTML("<div style='text-align:center;overflow:hidden;'><h3>📓 PDF Summarizer 📓</h3></div>")
|
42 |
gr.HTML("<br>")
|
43 |
+
# load sweet alert module from cdn
|
44 |
gr.HTML("""
|
45 |
<script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js'></script>
|
46 |
<link href='https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.min.css' rel='stylesheet'>
|
47 |
""")
|
48 |
|
49 |
+
# Button with Javascript Event
|
50 |
gr.HTML("""
|
51 |
<button onclick="Swal.fire({
|
52 |
title: 'How To Use',
|
53 |
text: 'Enter your Gemini API key, upload PDF document, select summary kind, then hit the summarize button',
|
54 |
icon: 'info'});"
|
55 |
+
style="padding: 10px; background-color: black; color: white; border: none; border-radius: 5px; cursor: pointer;text-align:center;">
|
56 |
Info
|
57 |
</button>
|
58 |
""")
|