Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,52 @@ with gr.Blocks(
|
|
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 |
-
|
55 |
-
style=
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
Info
|
57 |
</button>
|
58 |
""")
|
|
|
48 |
|
49 |
# Button with Javascript Event
|
50 |
gr.HTML("""
|
51 |
+
<button class = 'button-27' role = '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 |
+
timer: 5000});"
|
55 |
+
style=
|
56 |
+
.button-27 {
|
57 |
+
appearance: none;
|
58 |
+
background-color: #000000;
|
59 |
+
border: 2px solid #1A1A1A;
|
60 |
+
border-radius: 15px;
|
61 |
+
box-sizing: border-box;
|
62 |
+
color: #FFFFFF;
|
63 |
+
cursor: pointer;
|
64 |
+
display: inline-block;
|
65 |
+
font-family: Roobert,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
66 |
+
font-size: 16px;
|
67 |
+
font-weight: 600;
|
68 |
+
line-height: normal;
|
69 |
+
margin: 0;
|
70 |
+
min-height: 60px;
|
71 |
+
min-width: 0;
|
72 |
+
outline: none;
|
73 |
+
padding: 16px 24px;
|
74 |
+
text-align: center;
|
75 |
+
text-decoration: none;
|
76 |
+
transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
|
77 |
+
user-select: none;
|
78 |
+
-webkit-user-select: none;
|
79 |
+
touch-action: manipulation;
|
80 |
+
width: 100%;
|
81 |
+
will-change: transform;
|
82 |
+
}
|
83 |
+
|
84 |
+
.button-27:disabled {
|
85 |
+
pointer-events: none;
|
86 |
+
}
|
87 |
+
|
88 |
+
.button-27:hover {
|
89 |
+
box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
|
90 |
+
transform: translateY(-2px);
|
91 |
+
}
|
92 |
+
|
93 |
+
.button-27:active {
|
94 |
+
box-shadow: none;
|
95 |
+
transform: translateY(0);
|
96 |
+
>
|
97 |
Info
|
98 |
</button>
|
99 |
""")
|