Spaces:
Sleeping
Sleeping
shaheer-data
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -9,6 +9,10 @@ from huggingface_hub import hf_hub_download, login
|
|
9 |
# Set page configuration
|
10 |
st.set_page_config(page_title="Yellow Rust Severity Prediction", layout="wide", initial_sidebar_state="expanded")
|
11 |
|
|
|
|
|
|
|
|
|
12 |
# Authentication using Hugging Face token
|
13 |
authkey = os.getenv('YellowRust')
|
14 |
login(token=authkey)
|
@@ -35,8 +39,6 @@ st.sidebar.markdown('<p style="color: #555;">Upload an image of the wheat leaf t
|
|
35 |
uploaded_file = st.sidebar.file_uploader("Upload Wheat Leaf Image", type=["jpg", "jpeg", "png"])
|
36 |
st.sidebar.markdown("---")
|
37 |
|
38 |
-
# main content
|
39 |
-
st.markdown('<p style="text-align: center; color: #e8f52f; font-size: 40px; font-weight: bold;">Yellow Rust Severity Prediction Dashboard</p>', unsafe_allow_html=True)
|
40 |
|
41 |
# Display the uploaded image
|
42 |
if uploaded_file is not None:
|
|
|
9 |
# Set page configuration
|
10 |
st.set_page_config(page_title="Yellow Rust Severity Prediction", layout="wide", initial_sidebar_state="expanded")
|
11 |
|
12 |
+
# main content
|
13 |
+
st.markdown('<p style="text-align: center; color: #eaf26f; font-size: 40px; font-weight: bold;">Yellow Rust Severity Prediction Dashboard</p>', unsafe_allow_html=True)
|
14 |
+
|
15 |
+
|
16 |
# Authentication using Hugging Face token
|
17 |
authkey = os.getenv('YellowRust')
|
18 |
login(token=authkey)
|
|
|
39 |
uploaded_file = st.sidebar.file_uploader("Upload Wheat Leaf Image", type=["jpg", "jpeg", "png"])
|
40 |
st.sidebar.markdown("---")
|
41 |
|
|
|
|
|
42 |
|
43 |
# Display the uploaded image
|
44 |
if uploaded_file is not None:
|