an0nymous commited on
Commit
fbfa4a5
·
verified ·
1 Parent(s): 8e7e5b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
- #import seaborn as sns
5
  from tqdm.auto import tqdm
6
 
7
  # Load the CSV file into a DataFrame
@@ -11,10 +11,10 @@ df = pd.read_csv("sorted_results.csv") # Replace with the path to your CSV file
11
  def display_table():
12
  return df
13
 
14
- # Other tabs preprocessing
15
- # size_df = pd.read_excel("./models.xlsx", sheet_name="Selected Models")
16
- # size_df["Size"] = size_df["Size"].str.replace("b", "").astype(float)
17
- # size_map = size_df.set_index("id")["Size"].to_dict()
18
  raw_data = pd.read_csv("./tagged_data.csv")
19
 
20
  def plot_scatter(cat, x, y, col):
 
1
  import gradio as gr
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
+ import seaborn as sns
5
  from tqdm.auto import tqdm
6
 
7
  # Load the CSV file into a DataFrame
 
11
  def display_table():
12
  return df
13
 
14
+ # Tab 2
15
+ size_df = pd.read_excel("./models.xlsx", sheet_name="Selected Models")
16
+ size_df["Size"] = size_df["Size"].str.replace("b", "").astype(float)
17
+ size_map = size_df.set_index("id")["Size"].to_dict()
18
  raw_data = pd.read_csv("./tagged_data.csv")
19
 
20
  def plot_scatter(cat, x, y, col):