Don B
commited on
Commit
·
d0e74d7
1
Parent(s):
be8660e
add simple formatting
Browse files
app.py
CHANGED
|
@@ -1,7 +1,3 @@
|
|
| 1 |
-
# created to retrieve prompt info for posts created to showcase a model
|
| 2 |
-
# tested using python 3.10.13, streamlit 1.31.1, pandas 2.2.1, requests 2.31.0
|
| 3 |
-
# if you're running on Windows python 3.10.11 should be fine
|
| 4 |
-
# run from the command line "streamlit run app.py"
|
| 5 |
import streamlit as st
|
| 6 |
import pandas as pd
|
| 7 |
import requests
|
|
@@ -23,6 +19,7 @@ def fetch_images(postID):
|
|
| 23 |
def display_images(df):
|
| 24 |
if not df.empty:
|
| 25 |
for _, row in df.iterrows():
|
|
|
|
| 26 |
col1, col2 = st.columns([1, 2]) # Adjust the ratio as needed
|
| 27 |
with col1:
|
| 28 |
st.image(row['url'], use_column_width=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
import requests
|
|
|
|
| 19 |
def display_images(df):
|
| 20 |
if not df.empty:
|
| 21 |
for _, row in df.iterrows():
|
| 22 |
+
st.markdown("---")
|
| 23 |
col1, col2 = st.columns([1, 2]) # Adjust the ratio as needed
|
| 24 |
with col1:
|
| 25 |
st.image(row['url'], use_column_width=True)
|