Ifeanyi commited on
Commit
e99d163
·
verified ·
1 Parent(s): 914ce5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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>&#128211; PDF Summarizer &#128211;</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 JS Event
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: #4CAF50; color: white; border: none; border-radius: 5px; cursor: pointer;">
55
  Info
56
  </button>
57
  """)
 
40
  with gr.Sidebar(visible=False):
41
  gr.HTML("<div style='text-align:center;overflow:hidden;'><h3>&#128211; PDF Summarizer &#128211;</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
  """)