Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -149,14 +149,7 @@ def main():
|
|
149 |
{'name': i["name"], 'votes': i["votes"]}
|
150 |
for i in items if votes[i["url"]] > 0
|
151 |
])
|
152 |
-
|
153 |
-
p = figure(x_range=df['name'].tolist(),
|
154 |
-
height=250,
|
155 |
-
title="Vote Counts",
|
156 |
-
toolbar_location=None)
|
157 |
-
p.vbar(x='name', top='votes', width=0.9, source=df)
|
158 |
-
p.xaxis.major_label_orientation = 1.2
|
159 |
-
st.bokeh_chart(p)
|
160 |
|
161 |
if __name__ == "__main__":
|
162 |
-
main()
|
|
|
149 |
{'name': i["name"], 'votes': i["votes"]}
|
150 |
for i in items if votes[i["url"]] > 0
|
151 |
])
|
152 |
+
st.bar_chart(df.set_index('name'))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
|
154 |
if __name__ == "__main__":
|
155 |
+
main()
|