Hack90 commited on
Commit
a3d91c6
·
verified ·
1 Parent(s): 6c85b87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -74,8 +74,8 @@ def plot_2d_comparison(dna_sequences_grouped, labels, mapping=mapping_easy):
74
 
75
 
76
  ############################################################# Virus Dataset ########################################################
77
- ds = load_dataset('Hack90/virus_tiny')
78
- df = pd.DataFrame(ds['train'])
79
  virus = df['Organism_Name'].unique()
80
  virus = {v: v for v in virus}
81
 
@@ -853,8 +853,8 @@ with ui.layout_columns():
853
  here = Path(__file__).parent
854
  @render.plot
855
  def plot():
856
- ds = load_dataset('Hack90/virus_tiny')
857
- df = pd.DataFrame(ds['train'])
858
  df = df[df['Organism_Name'].isin(input.virus_selector())]
859
  # group by virus
860
  grouped = df.groupby('Organism_Name')['Sequence'].apply(list)
 
74
 
75
 
76
  ############################################################# Virus Dataset ########################################################
77
+ #ds = load_dataset('Hack90/virus_tiny')
78
+ df = pd.from_parquet('virus_ds.parquet')
79
  virus = df['Organism_Name'].unique()
80
  virus = {v: v for v in virus}
81
 
 
853
  here = Path(__file__).parent
854
  @render.plot
855
  def plot():
856
+ #ds = load_dataset('Hack90/virus_tiny')
857
+ df = pd.read_parquet('virus_ds.parquet')
858
  df = df[df['Organism_Name'].isin(input.virus_selector())]
859
  # group by virus
860
  grouped = df.groupby('Organism_Name')['Sequence'].apply(list)