Update app.py
Browse files
app.py
CHANGED
@@ -26,11 +26,9 @@ def plot_usage_volume(system1, users1, timeline1, system2, users2, timeline2, sy
|
|
26 |
# Create a line plot of the usage volume for each system
|
27 |
fig = px.line(data, x="Month", y="Usage", color="System", title="System Rollout Usage Volume Plot")
|
28 |
|
29 |
-
# Convert the plot to a JSON string
|
30 |
-
plot_json = json.dumps(fig, cls=plotly.utils.PlotlyJSONEncoder)
|
31 |
-
|
32 |
# Return the plot as a Gradio output
|
33 |
-
return
|
|
|
34 |
|
35 |
# Define the input components
|
36 |
inputs = [
|
|
|
26 |
# Create a line plot of the usage volume for each system
|
27 |
fig = px.line(data, x="Month", y="Usage", color="System", title="System Rollout Usage Volume Plot")
|
28 |
|
|
|
|
|
|
|
29 |
# Return the plot as a Gradio output
|
30 |
+
return fig
|
31 |
+
|
32 |
|
33 |
# Define the input components
|
34 |
inputs = [
|