FDSRashid commited on
Commit
300ac99
·
1 Parent(s): 051ae15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -42,9 +42,9 @@ def plot_timeline(yaxis, citi = ['المدينه', 'بغداد', 'كوفة', 'ب
42
  demo = gr.Blocks()
43
  with demo:
44
  with gr.Row():
45
- y_value = gradio.Dropdown(choices = ['Taraf', 'Hadith', 'Isnad', 'Ranking'], value = 'Taraf', label = 'Y Axis')
46
- city = gradio.Dropdown(choices = cities, value = ['المدينه', 'بغداد', 'كوفة', 'بصرة'], multiselect=True)
47
- begining = gradio.Slider(min_year, max_year, value = 0, label = 'Begining', info = 'Choose the first year to display Tarafs')
48
  end = gradio.Slider(min_year, max_year, value = 400, label = 'End', info = 'Choose the last year to display Tarafs')
49
  btn = gr.Button("Plot")
50
  btn.click(plot_timeline, [y_value,city, begining, end], gr.Plot())
 
42
  demo = gr.Blocks()
43
  with demo:
44
  with gr.Row():
45
+ y_value = gr.Dropdown(choices = ['Taraf', 'Hadith', 'Isnad', 'Ranking'], value = 'Taraf', label = 'Y Axis')
46
+ city = gr.Dropdown(choices = cities, value = ['المدينه', 'بغداد', 'كوفة', 'بصرة'], multiselect=True)
47
+ begining = gr.Slider(min_year, max_year, value = 0, label = 'Begining', info = 'Choose the first year to display Tarafs')
48
  end = gradio.Slider(min_year, max_year, value = 400, label = 'End', info = 'Choose the last year to display Tarafs')
49
  btn = gr.Button("Plot")
50
  btn.click(plot_timeline, [y_value,city, begining, end], gr.Plot())