Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,15 +49,20 @@ with gr.Blocks(
|
|
| 49 |
# Button with Javascript Event
|
| 50 |
gr.HTML("""
|
| 51 |
<div style="text-align:center;">
|
| 52 |
-
<button onclick=
|
| 53 |
-
title: 'How To Use',
|
| 54 |
-
text: 'Enter your Gemini API key, upload PDF document, select summary kind, then hit the summarize button',
|
| 55 |
-
confirmButtonColor: 'black',
|
| 56 |
-
timer: 7000
|
| 57 |
-
});"
|
| 58 |
style="padding: 10px; background-color: black; color: white; border: none; border-radius: 5px; cursor: pointer;">
|
| 59 |
Info
|
| 60 |
-
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
</div>
|
| 62 |
""")
|
| 63 |
|
|
|
|
| 49 |
# Button with Javascript Event
|
| 50 |
gr.HTML("""
|
| 51 |
<div style="text-align:center;">
|
| 52 |
+
<button onclick=infoAlert()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
style="padding: 10px; background-color: black; color: white; border: none; border-radius: 5px; cursor: pointer;">
|
| 54 |
Info
|
| 55 |
+
</button>
|
| 56 |
+
<script>
|
| 57 |
+
function infoAlert(){
|
| 58 |
+
Swal.fire({
|
| 59 |
+
title: 'How To Use',
|
| 60 |
+
text: 'Enter your Gemini API key, upload PDF document, select summary kind, then hit the summarize button',
|
| 61 |
+
confirmButtonColor: 'black',
|
| 62 |
+
timer: 7000
|
| 63 |
+
});
|
| 64 |
+
}
|
| 65 |
+
</script>
|
| 66 |
</div>
|
| 67 |
""")
|
| 68 |
|