Nidhal-ch commited on
Commit
018207f
·
verified ·
1 Parent(s): e495a73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -10,6 +10,9 @@ import matplotlib.pyplot as plt
10
  import streamlit as st
11
  import pandas as pd
12
  import matplotlib.pyplot as plt
 
 
 
13
 
14
  # Sample data for demonstration purposes
15
  models = ['SSD300', 'SSD512', 'DETR']
@@ -34,13 +37,14 @@ results_data = {
34
  # Title of the research
35
  st.title('Research Results')
36
 
37
- # Create two columns for the layout
38
- col1, col2 = st.columns(2)
39
- model="SSD300"
40
  # Left section: Results and Evolution Graphs
41
  with col1:
42
  st.subheader('Results')
43
  # Display results table
 
44
  results = results_data[model]
45
  df_results = pd.DataFrame({
46
  'Model': [model]*4,
@@ -74,8 +78,6 @@ with col1:
74
 
75
  # Right section: Filters and Hyperparameters
76
  with col2:
77
- model = st.selectbox('Select model:', models)
78
-
79
  if model in ['SSD300', 'SSD512']:
80
  pruning = st.selectbox('Select pruning method:', pruning_methods)
81
  hyperparameter_data = hyperparameters[model][pruning]
 
10
  import streamlit as st
11
  import pandas as pd
12
  import matplotlib.pyplot as plt
13
+ import streamlit as st
14
+ import pandas as pd
15
+ import matplotlib.pyplot as plt
16
 
17
  # Sample data for demonstration purposes
18
  models = ['SSD300', 'SSD512', 'DETR']
 
37
  # Title of the research
38
  st.title('Research Results')
39
 
40
+ # Create two columns with specified widths
41
+ col1, col2 = st.columns([7, 3])
42
+
43
  # Left section: Results and Evolution Graphs
44
  with col1:
45
  st.subheader('Results')
46
  # Display results table
47
+ model = st.selectbox('Select model:', models)
48
  results = results_data[model]
49
  df_results = pd.DataFrame({
50
  'Model': [model]*4,
 
78
 
79
  # Right section: Filters and Hyperparameters
80
  with col2:
 
 
81
  if model in ['SSD300', 'SSD512']:
82
  pruning = st.selectbox('Select pruning method:', pruning_methods)
83
  hyperparameter_data = hyperparameters[model][pruning]