Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -216,13 +216,15 @@ body {
|
|
216 |
}
|
217 |
"""
|
218 |
|
219 |
-
# Interface Gradio
|
220 |
# Interface Gradio
|
221 |
def toggle_bar(is_visible):
|
222 |
if is_visible:
|
223 |
cover_html = """
|
224 |
-
<div style="position: fixed; top: 0; left: 0; right: 0; height:
|
225 |
-
background: white; z-index:
|
|
|
|
|
|
|
226 |
</div>
|
227 |
"""
|
228 |
btn_text = "Mostrar Barra"
|
@@ -247,7 +249,18 @@ def demo():
|
|
247 |
position: fixed !important;
|
248 |
top: 10px !important;
|
249 |
right: 10px !important;
|
250 |
-
z-index:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
}
|
252 |
"""
|
253 |
|
@@ -257,7 +270,7 @@ def demo():
|
|
257 |
cover_html = gr.HTML("")
|
258 |
toggle_btn = gr.Button("Ocultar Barra", elem_classes="cover-button")
|
259 |
is_visible = gr.State(False)
|
260 |
-
|
261 |
# Estados do sistema
|
262 |
vector_db = gr.State()
|
263 |
qa_chain = gr.State()
|
|
|
216 |
}
|
217 |
"""
|
218 |
|
|
|
219 |
# Interface Gradio
|
220 |
def toggle_bar(is_visible):
|
221 |
if is_visible:
|
222 |
cover_html = """
|
223 |
+
<div style="position: fixed; top: 0; left: 0; right: 0; height: 90px;
|
224 |
+
background: white; z-index: 41;
|
225 |
+
border-bottom: 1px solid rgb(243 244 246);
|
226 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
227 |
+
background-image: linear-gradient(to top, white, white);">
|
228 |
</div>
|
229 |
"""
|
230 |
btn_text = "Mostrar Barra"
|
|
|
249 |
position: fixed !important;
|
250 |
top: 10px !important;
|
251 |
right: 10px !important;
|
252 |
+
z-index: 42 !important;
|
253 |
+
font-size: 14px !important;
|
254 |
+
padding: 8px 16px !important;
|
255 |
+
background-color: #2563eb !important;
|
256 |
+
color: white !important;
|
257 |
+
border: none !important;
|
258 |
+
border-radius: 6px !important;
|
259 |
+
cursor: pointer !important;
|
260 |
+
transition: background-color 0.2s !important;
|
261 |
+
}
|
262 |
+
.cover-button:hover {
|
263 |
+
background-color: #1d4ed8 !important;
|
264 |
}
|
265 |
"""
|
266 |
|
|
|
270 |
cover_html = gr.HTML("")
|
271 |
toggle_btn = gr.Button("Ocultar Barra", elem_classes="cover-button")
|
272 |
is_visible = gr.State(False)
|
273 |
+
|
274 |
# Estados do sistema
|
275 |
vector_db = gr.State()
|
276 |
qa_chain = gr.State()
|