Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'] =
|
| 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,
|
| 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())
|