FDSRashid commited on
Commit
0679297
ยท
1 Parent(s): 04fb4e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -23,7 +23,7 @@ narrator_bios = narrator_bios['train'].to_pandas()
23
  narrator_bios.loc[49845, 'Narrator Rank'] = 'ุฑุณูˆู„ ุงู„ู„ู‡'
24
  narrator_bios.loc[49845, 'Number of Narrations'] = 0
25
  narrator_bios['Number of Narrations'] = narrator_bios['Number of Narrations'].astype(int)
26
- narrator_bios.loc[49845, 'Number of Narrations'] = narrator_bios['Number of Narrations'].sum()
27
 
28
 
29
  edge_info = dataset.to_pandas()
@@ -92,7 +92,7 @@ with gr.Blocks() as demo:
92
  Places = gr.Dropdown(choices = cities, value = 'ุงู„ู…ุฏูŠู†ู‡', label = 'Location')
93
  FirstYear = gr.Slider(min_year, max_year, value = -11, label = 'Begining', info = 'Choose the first year to display Narrators')
94
  Last_Year = gr.Slider(min_year, max_year, value = 9, label = 'End', info = 'Choose the last year to display Narrators')
95
- num_narrators = gr.Slider(0, 1200, value = 400, label = 'Narrators', info = 'Choose the number of Narrators to display')
96
 
97
  btn = gr.Button('Submit')
98
  btn.click(fn = network_visualizer, inputs = [Yaxis, Places, FirstYear, Last_Year, num_narrators], outputs = gr.HTML())
 
23
  narrator_bios.loc[49845, 'Narrator Rank'] = 'ุฑุณูˆู„ ุงู„ู„ู‡'
24
  narrator_bios.loc[49845, 'Number of Narrations'] = 0
25
  narrator_bios['Number of Narrations'] = narrator_bios['Number of Narrations'].astype(int)
26
+ narrator_bios.loc[49845, 'Number of Narrations'] = 443471
27
 
28
 
29
  edge_info = dataset.to_pandas()
 
92
  Places = gr.Dropdown(choices = cities, value = 'ุงู„ู…ุฏูŠู†ู‡', label = 'Location')
93
  FirstYear = gr.Slider(min_year, max_year, value = -11, label = 'Begining', info = 'Choose the first year to display Narrators')
94
  Last_Year = gr.Slider(min_year, max_year, value = 9, label = 'End', info = 'Choose the last year to display Narrators')
95
+ num_narrators = gr.Slider(0, 2000, value = 400, label = 'Narrators', info = 'Choose the number of Narrators to display')
96
 
97
  btn = gr.Button('Submit')
98
  btn.click(fn = network_visualizer, inputs = [Yaxis, Places, FirstYear, Last_Year, num_narrators], outputs = gr.HTML())