Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def plot_forecast(final_year, companies, noise, show_legend, point_style):
|
|
17 |
plt_format = ({"cross": "X", "line": "-", "circle": "o--"})[point_style]
|
18 |
fig = plt.figure()
|
19 |
ax = fig.add_subplot(111)
|
20 |
-
for i, company in enumerate(["
|
21 |
if company in companies:
|
22 |
series = np.arange(0, year_count, dtype=float)
|
23 |
series = series**2 * (i + 1)
|
@@ -35,7 +35,7 @@ demo = gr.Interface(
|
|
35 |
plot_forecast,
|
36 |
[
|
37 |
gr.Radio([2025, 2030, 2035, 2040], label="Project to:"),
|
38 |
-
gr.CheckboxGroup(["
|
39 |
gr.Slider(1, 100, label="Noise Level"),
|
40 |
gr.Checkbox(label="Show Legend"),
|
41 |
gr.Dropdown(["cross", "line", "circle"], label="Style"),
|
|
|
17 |
plt_format = ({"cross": "X", "line": "-", "circle": "o--"})[point_style]
|
18 |
fig = plt.figure()
|
19 |
ax = fig.add_subplot(111)
|
20 |
+
for i, company in enumerate(["SBI", "Kotak", "Axis", "IDFC", "PNB", "ICICI"]):
|
21 |
if company in companies:
|
22 |
series = np.arange(0, year_count, dtype=float)
|
23 |
series = series**2 * (i + 1)
|
|
|
35 |
plot_forecast,
|
36 |
[
|
37 |
gr.Radio([2025, 2030, 2035, 2040], label="Project to:"),
|
38 |
+
gr.CheckboxGroup(["SBI", "Kotak", "Axis", "IDFC", "PNB", "ICICI"], label="Company Selection"),
|
39 |
gr.Slider(1, 100, label="Noise Level"),
|
40 |
gr.Checkbox(label="Show Legend"),
|
41 |
gr.Dropdown(["cross", "line", "circle"], label="Style"),
|