Spaces:
Sleeping
Sleeping
Commit
·
4bee7a0
1
Parent(s):
95c2f97
app.py
CHANGED
@@ -101,11 +101,11 @@ with gr.Blocks(css="""
|
|
101 |
value=get_avid_readers(data_tiny).reset_index().reset_index(),
|
102 |
row_count=10,
|
103 |
col_count=3,
|
104 |
-
)
|
105 |
with gr.Column(scale=3):
|
106 |
avid_readers_plot = gr.Plot(value=plot_avid_readers(data_tiny))
|
107 |
|
108 |
-
|
109 |
|
110 |
gr.Markdown("""
|
111 |
## Requirement 5 & 6: "Also likes" functionality and graph
|
|
|
101 |
value=get_avid_readers(data_tiny).reset_index().reset_index(),
|
102 |
row_count=10,
|
103 |
col_count=3,
|
104 |
+
)
|
105 |
with gr.Column(scale=3):
|
106 |
avid_readers_plot = gr.Plot(value=plot_avid_readers(data_tiny))
|
107 |
|
108 |
+
selected_dataset_3.change(fn=req_4, inputs=selected_dataset_4, outputs=[avid_readers, avid_readers_plot])
|
109 |
|
110 |
gr.Markdown("""
|
111 |
## Requirement 5 & 6: "Also likes" functionality and graph
|
cw2.py
CHANGED
@@ -134,9 +134,6 @@ def also_like_graph(data, doc_uuid, visitor_uuid, ascending):
|
|
134 |
return 'output.png'
|
135 |
|
136 |
|
137 |
-
# print(also_like(data_tiny, "100713205147-2ee05a98f1794324952eea5ca678c026", "b5d13a36dad1147b", False).groupby(1).count().nlargest(10, [0]))
|
138 |
-
# print(also_like("1s", "a", False).groupby(1).count())
|
139 |
-
#
|
140 |
@click.command()
|
141 |
@click.option('-u', type=str, help="user_uuid")
|
142 |
@click.option('-d', type=str, help="doc_uuid")
|
|
|
134 |
return 'output.png'
|
135 |
|
136 |
|
|
|
|
|
|
|
137 |
@click.command()
|
138 |
@click.option('-u', type=str, help="user_uuid")
|
139 |
@click.option('-d', type=str, help="doc_uuid")
|