OneStarDao commited on
Commit
07ad6d2
·
verified ·
1 Parent(s): 243324b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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, show=False)
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