Spaces:
Runtime error
Runtime error
forgot to change the variable name
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ if x != "":
|
|
22 |
ordered_results = []
|
23 |
for lbl in candidate_labels:
|
24 |
ind = output['labels'].index(lbl)
|
25 |
-
|
26 |
|
27 |
df = pd.DataFrame(dict(r=ordered_results, theta=candidate_labels))
|
28 |
fig = px.line_polar(df, r='r', theta='theta', line_close=True)
|
|
|
22 |
ordered_results = []
|
23 |
for lbl in candidate_labels:
|
24 |
ind = output['labels'].index(lbl)
|
25 |
+
ordered_results.append(output['scores'][ind])
|
26 |
|
27 |
df = pd.DataFrame(dict(r=ordered_results, theta=candidate_labels))
|
28 |
fig = px.line_polar(df, r='r', theta='theta', line_close=True)
|