Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,7 @@ def plot_timeline(citi = ['المدينه', 'بغداد', 'كوفة', 'بصرة'
|
|
34 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
|
35 |
fig = px.line(data_frame = filtered, x = 'Year', y = 'Taraf', title = "Tarafs per Year", color = 'City' )
|
36 |
fig.update_layout(title_font_color = 'red', title_x = .5)
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
return fig
|
41 |
|
42 |
app = gradio.Interface(plot_timeline,
|
43 |
[gradio.Dropdown(choices = cities, value = ['المدينه', 'بغداد', 'كوفة', 'بصرة'], multiselect=True),
|
|
|
34 |
filtered = taraf_s[taraf_s['City'].isin(citi) & (taraf_s['Year'] >= min_year) & (taraf_s['Year'] <= max_year)]
|
35 |
fig = px.line(data_frame = filtered, x = 'Year', y = 'Taraf', title = "Tarafs per Year", color = 'City' )
|
36 |
fig.update_layout(title_font_color = 'red', title_x = .5)
|
37 |
+
return fig
|
|
|
|
|
|
|
38 |
|
39 |
app = gradio.Interface(plot_timeline,
|
40 |
[gradio.Dropdown(choices = cities, value = ['المدينه', 'بغداد', 'كوفة', 'بصرة'], multiselect=True),
|