Spaces:
Runtime error
Runtime error
update accordion layout
Browse files
app.py
CHANGED
@@ -60,8 +60,7 @@ with gr.Blocks(css = """#label_mid {padding-top: 2px; padding-bottom: 2px;}
|
|
60 |
#col-container {max-width: 580px; margin-left: auto; margin-right: auto;}
|
61 |
#accordion {max-width: 580px; margin-left: auto; margin-right: auto;}
|
62 |
""") as demo:
|
63 |
-
|
64 |
-
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
65 |
<div
|
66 |
style="
|
67 |
display: inline-flex;
|
@@ -75,7 +74,9 @@ with gr.Blocks(css = """#label_mid {padding-top: 2px; padding-bottom: 2px;}
|
|
75 |
<div><h4 style="font-weight: 500; margin-bottom: 7px; margin-top: 5px;">
|
76 |
Get BLIP2 captions from <a href="https://langchain.readthedocs.io/en/latest/" target="_blank">Niels space</a> via API call,<br>
|
77 |
Use LangChain to create vector space with PlaygroundAI prompts</h4><br>
|
78 |
-
</div>
|
|
|
|
|
79 |
<p style="margin-bottom: 10px; font-size: 90%">
|
80 |
Do you see the "view api" link located in the footer of this application?
|
81 |
By clicking on this link, a page will open which provides documentation on the REST API that developers can use to query the Interface function / Block events.<br>
|
|
|
60 |
#col-container {max-width: 580px; margin-left: auto; margin-right: auto;}
|
61 |
#accordion {max-width: 580px; margin-left: auto; margin-right: auto;}
|
62 |
""") as demo:
|
63 |
+
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
|
|
64 |
<div
|
65 |
style="
|
66 |
display: inline-flex;
|
|
|
74 |
<div><h4 style="font-weight: 500; margin-bottom: 7px; margin-top: 5px;">
|
75 |
Get BLIP2 captions from <a href="https://langchain.readthedocs.io/en/latest/" target="_blank">Niels space</a> via API call,<br>
|
76 |
Use LangChain to create vector space with PlaygroundAI prompts</h4><br>
|
77 |
+
</div>""")
|
78 |
+
with gr.Accordion(label="Details about the working of the App", open=False, elem_id='accordion'):
|
79 |
+
gr.HTML("""<div style="text-align: center; max-width: 700px; margin: 0 auto;">
|
80 |
<p style="margin-bottom: 10px; font-size: 90%">
|
81 |
Do you see the "view api" link located in the footer of this application?
|
82 |
By clicking on this link, a page will open which provides documentation on the REST API that developers can use to query the Interface function / Block events.<br>
|