Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,6 @@ def load_dataset():
|
|
36 |
@st.cache_data(show_spinner=False)
|
37 |
def load_dataframe(_dataset):
|
38 |
dataframe = _dataset.remove_columns(['txt_embs', 'img_embs']).to_pandas()
|
39 |
-
dataframe['image_base64'] = dataframe['image_base64'].str.decode('utf-8')
|
40 |
return dataframe
|
41 |
|
42 |
@st.cache_resource(show_spinner=True)
|
@@ -308,7 +307,7 @@ if check_password():
|
|
308 |
st.dataframe(
|
309 |
data=text_to_image(text_to_image_input, text_to_image_k_top),
|
310 |
column_config={
|
311 |
-
"
|
312 |
"Image", help="Instagram image"
|
313 |
),
|
314 |
"URL": st.column_config.LinkColumn(
|
@@ -325,7 +324,7 @@ if check_password():
|
|
325 |
st.dataframe(
|
326 |
data=image_to_image(image_to_image_input, image_to_image_k_top),
|
327 |
column_config={
|
328 |
-
"
|
329 |
"Image", help="Instagram image"
|
330 |
),
|
331 |
"URL": st.column_config.LinkColumn(
|
@@ -342,7 +341,7 @@ if check_password():
|
|
342 |
st.dataframe(
|
343 |
data=image_to_text(image_to_text_input, image_to_text_k_top),
|
344 |
column_config={
|
345 |
-
"
|
346 |
"Image", help="Instagram image"
|
347 |
),
|
348 |
"URL": st.column_config.LinkColumn(
|
|
|
36 |
@st.cache_data(show_spinner=False)
|
37 |
def load_dataframe(_dataset):
|
38 |
dataframe = _dataset.remove_columns(['txt_embs', 'img_embs']).to_pandas()
|
|
|
39 |
return dataframe
|
40 |
|
41 |
@st.cache_resource(show_spinner=True)
|
|
|
307 |
st.dataframe(
|
308 |
data=text_to_image(text_to_image_input, text_to_image_k_top),
|
309 |
column_config={
|
310 |
+
"image": st.column_config.ImageColumn(
|
311 |
"Image", help="Instagram image"
|
312 |
),
|
313 |
"URL": st.column_config.LinkColumn(
|
|
|
324 |
st.dataframe(
|
325 |
data=image_to_image(image_to_image_input, image_to_image_k_top),
|
326 |
column_config={
|
327 |
+
"image": st.column_config.ImageColumn(
|
328 |
"Image", help="Instagram image"
|
329 |
),
|
330 |
"URL": st.column_config.LinkColumn(
|
|
|
341 |
st.dataframe(
|
342 |
data=image_to_text(image_to_text_input, image_to_text_k_top),
|
343 |
column_config={
|
344 |
+
"image": st.column_config.ImageColumn(
|
345 |
"Image", help="Instagram image"
|
346 |
),
|
347 |
"URL": st.column_config.LinkColumn(
|