Omnibus commited on
Commit
cba6bca
·
1 Parent(s): 17da355

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def aiornot0(image):
34
 
35
  prediction = logits.argmax(-1).item()
36
  label = labels[prediction]
37
- return gr.BarPlot.update(label=f'{models[0]}', vertical=False, x=px, y=[0,1])
38
  def aiornot1(image):
39
  labels = ["Real", "AI"]
40
  mod=models[1]
 
34
 
35
  prediction = logits.argmax(-1).item()
36
  label = labels[prediction]
37
+ return gr.BarPlot.update(label=f'{models[0]}', vertical=False,value=px)
38
  def aiornot1(image):
39
  labels = ["Real", "AI"]
40
  mod=models[1]