qwerty45-uiop commited on
Commit
e34ca5d
Β·
verified Β·
1 Parent(s): 33048cb

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -15
src/streamlit_app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  #!/usr/bin/env python3
2
  """
3
  LLM Compatibility Advisor - Streamlined with Download Sizes
@@ -330,11 +331,6 @@ with st.sidebar:
330
  default=["general", "code", "chat"]
331
  )
332
 
333
- # RAM range filter
334
- st.subheader("RAM Range Filter")
335
- min_ram = st.slider("Minimum RAM (GB)", 0, 32, 0)
336
- max_ram = st.slider("Maximum RAM (GB)", 0, 128, 128)
337
-
338
  st.markdown("---")
339
  st.markdown("### πŸ“Š Quick Stats")
340
  st.metric("Total Students", len(df))
@@ -419,15 +415,8 @@ df_display["Mobile LLM"] = mobile_recommendations
419
  df_display["Laptop Tier"] = laptop_tiers
420
  df_display["Mobile Tier"] = mobile_tiers
421
 
422
- # Filter based on sidebar selections
423
- laptop_ram_numeric = df["Laptop RAM"].apply(extract_numeric_ram)
424
- mobile_ram_numeric = df["Mobile RAM"].apply(extract_numeric_ram)
425
-
426
- # Apply filters
427
- mask = (
428
- (laptop_tiers.isin(performance_filter) | mobile_tiers.isin(performance_filter)) &
429
- ((laptop_ram_numeric.between(min_ram, max_ram)) | (mobile_ram_numeric.between(min_ram, max_ram)))
430
- )
431
 
432
  df_filtered = df_display[mask]
433
 
@@ -622,4 +611,4 @@ st.markdown("""
622
 
623
 
624
  ---
625
- """)
 
1
+
2
  #!/usr/bin/env python3
3
  """
4
  LLM Compatibility Advisor - Streamlined with Download Sizes
 
331
  default=["general", "code", "chat"]
332
  )
333
 
 
 
 
 
 
334
  st.markdown("---")
335
  st.markdown("### πŸ“Š Quick Stats")
336
  st.metric("Total Students", len(df))
 
415
  df_display["Laptop Tier"] = laptop_tiers
416
  df_display["Mobile Tier"] = mobile_tiers
417
 
418
+ # Filter based on sidebar selections (RAM range filter removed)
419
+ mask = (laptop_tiers.isin(performance_filter) | mobile_tiers.isin(performance_filter))
 
 
 
 
 
 
 
420
 
421
  df_filtered = df_display[mask]
422
 
 
611
 
612
 
613
  ---
614
+ """)