Preeeeet commited on
Commit
82d52a4
·
verified ·
1 Parent(s): e896684

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -71,7 +71,12 @@ def generate_report(images, job_number, job_name, job_address, uploader_name):
71
 
72
  # Streamlit interface
73
  st.title("HKC Report Generator")
74
- st.image("./logo.png", width=100) # Display logo at the top
 
 
 
 
 
75
  st.write("Upload images and provide job details to generate a Word report with job information and a dynamic image layout.")
76
 
77
  # User inputs
 
71
 
72
  # Streamlit interface
73
  st.title("HKC Report Generator")
74
+
75
+ # Upload the logo at runtime
76
+ uploaded_logo = st.file_uploader("Upload Logo", type=["png", "jpg", "jpeg"])
77
+ if uploaded_logo:
78
+ st.image(uploaded_logo, width=100)
79
+
80
  st.write("Upload images and provide job details to generate a Word report with job information and a dynamic image layout.")
81
 
82
  # User inputs