Ifeanyi commited on
Commit
baa88e2
·
verified ·
1 Parent(s): 554f4be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -3
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>&#128211; PDF Summarizer &#128211;</h3></div>")
61
  gr.HTML("<br>")
62
- gr.HTML("<div style='text-align:center;overflow:hidden;'")
63
- info_btn = gr.Button("Info")
64
- gr.HTML("</div>")
 
 
 
 
 
 
 
 
 
 
 
 
 
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>&#128211; PDF Summarizer &#128211;</h3></div>")
61
  gr.HTML("<br>")
62
+ gr.HTML("""
63
+ <script src='https://cdn.jsdelivr.net/npm/[email protected]/dist/sweetalert2.all.min.js'></script>
64
+ <link href='https://cdn.jsdelivr.net/npm/[email protected]/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