marcelomoreno26 commited on
Commit
73ed7f4
1 Parent(s): 4710799

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -19,6 +19,20 @@ def main():
19
 
20
  # File uploader
21
  uploaded_file = st.file_uploader("Choose a file (.zip)", type=['zip'])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  if uploaded_file is not None:
23
  file_type = detect_file_type(uploaded_file.name)
24
  if file_type == "zip":
 
19
 
20
  # File uploader
21
  uploaded_file = st.file_uploader("Choose a file (.zip)", type=['zip'])
22
+
23
+ st.markdown("**Example Files**: Select an example file to analyze:")
24
+ example_files = {
25
+ "Example 1": "example1.zip",
26
+ "Example 2": "example2.zip",
27
+ "Example 3": "example3.zip"
28
+ }
29
+ selected_example = st.selectbox("", list(example_files.keys()))
30
+
31
+ if selected_example:
32
+ file_path = example_files[selected_example]
33
+ with open(file_path, "rb") as f:
34
+ uploaded_file = f.read()
35
+
36
  if uploaded_file is not None:
37
  file_type = detect_file_type(uploaded_file.name)
38
  if file_type == "zip":