Spaces:
Sleeping
Sleeping
update some stuff,
Browse files
app.py
CHANGED
@@ -1,21 +1,16 @@
|
|
1 |
import streamlit as st
|
2 |
-
|
3 |
-
from PIL import Image
|
4 |
|
5 |
-
pipeline = pipeline(task="image-classification",
|
6 |
-
model="julien-c/hotdog-not-hotdog")
|
7 |
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
10 |
-
file_name = st.file_uploader("Upload a hot dog candidate image")
|
11 |
|
12 |
-
if
|
13 |
-
|
14 |
-
|
15 |
-
image = Image.open(file_name)
|
16 |
-
col1.image(image, use_column_width=True)
|
17 |
-
predictions = pipeline(image)
|
18 |
-
|
19 |
-
col2.header("Probabilities")
|
20 |
-
for p in predictions:
|
21 |
-
col2.subheader(f"{ p['label'] }: { round(p['score'] * 100, 1)}%")
|
|
|
1 |
import streamlit as st
|
2 |
+
import astroplan
|
|
|
3 |
|
|
|
|
|
4 |
|
5 |
+
def main():
|
6 |
+
st.title("Zodiac Sign Calculator")
|
7 |
+
year = st.slider("Enter your year of birth:", 1900, 2000, value=1991)
|
8 |
+
month = st.slider("Enter your month of birth:", 1, 12, value=1)
|
9 |
+
day = st.slider("Enter your day of birth:", 1, 31, value=1)
|
10 |
+
birth_date = astroplan.Date(year, month, day)
|
11 |
+
zodiac_sign = birth_date.zodiac_sign
|
12 |
+
st.write("Your zodiac sign is: ", zodiac_sign)
|
13 |
|
|
|
14 |
|
15 |
+
if __name__ == "__main__":
|
16 |
+
main()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|