Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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,value=px)
|
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, x=px,y=[0,1])
|
38 |
def aiornot1(image):
|
39 |
labels = ["Real", "AI"]
|
40 |
mod=models[1]
|