Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def wfgy_pipeline(prompt: str, enable_wfgy: bool):
|
|
36 |
f"| top-1 {top1}"
|
37 |
)
|
38 |
|
39 |
-
fig = plot_histogram(raw_logits, mod_logits
|
40 |
buf = io.BytesIO(); fig.savefig(buf, format="png"); fig.clf()
|
41 |
img_uri = "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode()
|
42 |
|
|
|
36 |
f"| top-1 {top1}"
|
37 |
)
|
38 |
|
39 |
+
fig = plot_histogram(raw_logits, mod_logits) # <<< fixed
|
40 |
buf = io.BytesIO(); fig.savefig(buf, format="png"); fig.clf()
|
41 |
img_uri = "data:image/png;base64," + base64.b64encode(buf.getvalue()).decode()
|
42 |
|