Spaces:
Running
Running
connected cache between pages
Browse files
π _Home.py β Home.py
RENAMED
@@ -32,7 +32,7 @@ def save_user_id(user_id):
|
|
32 |
|
33 |
|
34 |
if __name__ == '__main__':
|
35 |
-
st.set_page_config(page_title="Login", page_icon="π ")
|
36 |
|
37 |
st.title("Personalized Image Ranking")
|
38 |
st.write(
|
|
|
32 |
|
33 |
|
34 |
if __name__ == '__main__':
|
35 |
+
st.set_page_config(page_title="Login", page_icon="π ", layout="wide")
|
36 |
|
37 |
st.title("Personalized Image Ranking")
|
38 |
st.write(
|
README.md
CHANGED
@@ -6,7 +6,7 @@ colorTo: purple
|
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.19.0
|
8 |
python_version: 3.9.13
|
9 |
-
app_file:
|
10 |
pinned: false
|
11 |
---
|
12 |
|
|
|
6 |
sdk: streamlit
|
7 |
sdk_version: 1.19.0
|
8 |
python_version: 3.9.13
|
9 |
+
app_file: Home.py
|
10 |
pinned: false
|
11 |
---
|
12 |
|
pages/{1_πΌοΈ_Gallery.py β Gallery.py}
RENAMED
File without changes
|
pages/{2_ποΈ_Ranking.py β Ranking.py}
RENAMED
@@ -2,6 +2,7 @@ import streamlit as st
|
|
2 |
import numpy as np
|
3 |
import pandas as pd
|
4 |
from streamlit_extras.switch_page_button import switch_page
|
|
|
5 |
|
6 |
if __name__ == "__main__":
|
7 |
st.set_page_config(page_title="Personal Image Ranking", page_icon="ποΈοΈ", layout="wide")
|
@@ -25,4 +26,9 @@ if __name__ == "__main__":
|
|
25 |
switch_page('gallery')
|
26 |
else:
|
27 |
st.write('You have checked ' + str(all_checked) + ' images.')
|
|
|
|
|
|
|
|
|
|
|
28 |
|
|
|
2 |
import numpy as np
|
3 |
import pandas as pd
|
4 |
from streamlit_extras.switch_page_button import switch_page
|
5 |
+
from pages.Gallery import load_hf_dataset
|
6 |
|
7 |
if __name__ == "__main__":
|
8 |
st.set_page_config(page_title="Personal Image Ranking", page_icon="ποΈοΈ", layout="wide")
|
|
|
26 |
switch_page('gallery')
|
27 |
else:
|
28 |
st.write('You have checked ' + str(all_checked) + ' images.')
|
29 |
+
roster, promptBook, images_ds = load_hf_dataset()
|
30 |
+
st.write("## roster")
|
31 |
+
st.write(roster)
|
32 |
+
st.write("## promptBook")
|
33 |
+
st.write(promptBook)
|
34 |
|
pages/__pycache__/Gallery.cpython-39.pyc
ADDED
Binary file (10.2 kB). View file
|
|