Spaces:
Sleeping
Sleeping
Commit
•
5fe582a
1
Parent(s):
e7492f2
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import gradio as gr
|
|
7 |
|
8 |
|
9 |
def plot_forecast(final_year, companies, noise, show_legend, point_style):
|
10 |
-
start_year =
|
11 |
x = np.arange(start_year, final_year + 1)
|
12 |
year_count = x.shape[0]
|
13 |
plt_format = ({"cross": "X", "line": "-", "circle": "o--"})[point_style]
|
@@ -27,7 +27,7 @@ demo = gr.Interface(
|
|
27 |
plot_forecast,
|
28 |
[
|
29 |
gr.Radio([2025, 2030, 2035, 2040], label="Forecast year:"),
|
30 |
-
gr.CheckboxGroup(["Google", "Microsoft", "Gradio"
|
31 |
gr.Slider(1, 100, label="Noise Level"),
|
32 |
gr.Checkbox(label="Show Legend"),
|
33 |
gr.Dropdown(["Cross Points", "Linear", "Circle Points"], label="Graph Style"),
|
|
|
7 |
|
8 |
|
9 |
def plot_forecast(final_year, companies, noise, show_legend, point_style):
|
10 |
+
start_year = 2019
|
11 |
x = np.arange(start_year, final_year + 1)
|
12 |
year_count = x.shape[0]
|
13 |
plt_format = ({"cross": "X", "line": "-", "circle": "o--"})[point_style]
|
|
|
27 |
plot_forecast,
|
28 |
[
|
29 |
gr.Radio([2025, 2030, 2035, 2040], label="Forecast year:"),
|
30 |
+
gr.CheckboxGroup(["Google", "Microsoft", "Gradio"], label="Company Selection"),
|
31 |
gr.Slider(1, 100, label="Noise Level"),
|
32 |
gr.Checkbox(label="Show Legend"),
|
33 |
gr.Dropdown(["Cross Points", "Linear", "Circle Points"], label="Graph Style"),
|