Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ class DownloadsTracker:
|
|
38 |
return None
|
39 |
|
40 |
def plot(self, use_log_scale):
|
41 |
-
fig = make_subplots(rows=2, cols=1, subplot_titles=("Cumulative Downloads", "Weekly Downloads"))
|
42 |
|
43 |
colors = px.colors.qualitative.Pastel # Built-in color sequence
|
44 |
for i, pkg in enumerate(self.current_packages):
|
@@ -87,7 +87,7 @@ css = """
|
|
87 |
"""
|
88 |
|
89 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
90 |
-
packages = gr.Textbox("transformers", label="Package names (comma-separated)")
|
91 |
log_scale = gr.Checkbox(label="Use logarithmic scale on Y-axis", value=False)
|
92 |
error_box = gr.Textbox(label="Errors:", interactive=False, visible=False, elem_id="textbox_id")
|
93 |
render_btn = gr.Button("Render")
|
|
|
38 |
return None
|
39 |
|
40 |
def plot(self, use_log_scale):
|
41 |
+
fig = make_subplots(rows=2, cols=1, subplot_titles=("Cumulative Downloads (restarted at 0)", "Weekly Downloads"))
|
42 |
|
43 |
colors = px.colors.qualitative.Pastel # Built-in color sequence
|
44 |
for i, pkg in enumerate(self.current_packages):
|
|
|
87 |
"""
|
88 |
|
89 |
with gr.Blocks(theme=gr.themes.Soft(), css=css) as demo:
|
90 |
+
packages = gr.Textbox("transformers, accelerate", label="Package names (comma-separated)")
|
91 |
log_scale = gr.Checkbox(label="Use logarithmic scale on Y-axis", value=False)
|
92 |
error_box = gr.Textbox(label="Errors:", interactive=False, visible=False, elem_id="textbox_id")
|
93 |
render_btn = gr.Button("Render")
|