Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -24,25 +24,6 @@ prompt = PromptTemplate(
|
|
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 |
-
|
46 |
def process_query(image, query):
|
47 |
encoding = processor(image, query, return_tensors="pt")
|
48 |
outputs = model(**encoding)
|
@@ -56,11 +37,6 @@ st.set_page_config(page_title="Insightly")
|
|
56 |
# Sidebar contents
|
57 |
with st.sidebar:
|
58 |
st.sidebar.image("https://i.ibb.co/bX6GdqG/insightly-wbg.png", use_column_width=True)
|
59 |
-
# Add link to the sidebar
|
60 |
-
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://insightly-csv-bot.hf.space/'> Insightly - CSV Bot</a></p>", unsafe_allow_html=True)
|
61 |
-
st.sidebar.markdown("<p class='sidebar-link'>π <a href='https://chandrakalagowda-demo2.hf.space/'> Insightly - PDF Bot </a></p>", unsafe_allow_html=True)
|
62 |
-
st.sidebar.markdown("<p class='sidebar-link'>πΈ <a href='https://insightly-image-reader.hf.space'> Insightly - Frame Capturer</a></p>", unsafe_allow_html=True)
|
63 |
-
|
64 |
|
65 |
|
66 |
|
|
|
24 |
Your structured response:""",
|
25 |
)
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
def process_query(image, query):
|
28 |
encoding = processor(image, query, return_tensors="pt")
|
29 |
outputs = model(**encoding)
|
|
|
37 |
# Sidebar contents
|
38 |
with st.sidebar:
|
39 |
st.sidebar.image("https://i.ibb.co/bX6GdqG/insightly-wbg.png", use_column_width=True)
|
|
|
|
|
|
|
|
|
|
|
40 |
|
41 |
|
42 |
|