Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -1282,12 +1282,14 @@ def display_images_and_wikipedia_summaries(num_columns=4):
|
|
1282 |
with cols[col_index % num_columns]: # Cycle through columns based on num_columns
|
1283 |
try:
|
1284 |
image = Image.open(image_file)
|
1285 |
-
st.image(image, caption=image_file, use_column_width=True)
|
|
|
1286 |
k = image_file.split('.')[0] # Assumes keyword is the file name without extension
|
1287 |
display_glossary_entity(k)
|
1288 |
|
1289 |
# Add text input for image file
|
1290 |
-
image_text_input = st.text_input(f"Image Prompt for {image_file}", key=f"image_prompt_{image_file}")
|
|
|
1291 |
if (len(image_text_input) > 0):
|
1292 |
#image_response = process_image(image, image_text_input)
|
1293 |
image_response = process_image(image_file, image_text_input)
|
|
|
1282 |
with cols[col_index % num_columns]: # Cycle through columns based on num_columns
|
1283 |
try:
|
1284 |
image = Image.open(image_file)
|
1285 |
+
#st.image(image, caption=image_file, use_column_width=True)
|
1286 |
+
st.image(image, use_column_width=True)
|
1287 |
k = image_file.split('.')[0] # Assumes keyword is the file name without extension
|
1288 |
display_glossary_entity(k)
|
1289 |
|
1290 |
# Add text input for image file
|
1291 |
+
#image_text_input = st.text_input(f"Image Prompt for {image_file}", key=f"image_prompt_{image_file}")
|
1292 |
+
image_text_input = st.text_input(f"Image Prompt:", key=f"image_prompt_{image_file}")
|
1293 |
if (len(image_text_input) > 0):
|
1294 |
#image_response = process_image(image, image_text_input)
|
1295 |
image_response = process_image(image_file, image_text_input)
|