Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,6 +24,29 @@ prompt = PromptTemplate(
|
|
24 |
Your structured response:""",
|
25 |
)
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
def process_query(image, query):
|
28 |
encoding = processor(image, query, return_tensors="pt")
|
29 |
outputs = model(**encoding)
|
|
|
24 |
Your structured response:""",
|
25 |
)
|
26 |
|
27 |
+
# Add custom CSS to increase space between images
|
28 |
+
st.markdown(
|
29 |
+
"""
|
30 |
+
<style>
|
31 |
+
.image-container {
|
32 |
+
margin-bottom: 60px;
|
33 |
+
}
|
34 |
+
.sidebar-link {
|
35 |
+
display: flex;
|
36 |
+
justify-content: left;
|
37 |
+
font-size: 24px;
|
38 |
+
margin-top: 20px;
|
39 |
+
}
|
40 |
+
</style>
|
41 |
+
""",
|
42 |
+
unsafe_allow_html=True,
|
43 |
+
)
|
44 |
+
|
45 |
+
# Add link to the sidebar
|
46 |
+
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://insightly-csv-bot.hf.space/'> Insightly - CSV Bot</a></p>", unsafe_allow_html=True)
|
47 |
+
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://chandrakalagowda-demo2.hf.space/'> Insightly - PDF Bot </a></p>", unsafe_allow_html=True)
|
48 |
+
st.sidebar.markdown("<p class='sidebar-link'>πΈ <a href='https://insightly-image-reader.hf.space'> Insightly - Frame Capturer</a></p>", unsafe_allow_html=True)
|
49 |
+
|
50 |
def process_query(image, query):
|
51 |
encoding = processor(image, query, return_tensors="pt")
|
52 |
outputs = model(**encoding)
|