Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,11 +36,11 @@ def aiornot0(image):
|
|
36 |
label = labels[prediction]
|
37 |
|
38 |
html_out = f"""
|
39 |
-
<h3>Model used: <a href src='https://huggingface.co/
|
40 |
This image is likely: {label}<br>
|
41 |
Probabilites<br>
|
42 |
-
AI: {px[0]}<br>
|
43 |
-
Real: {px[1]}"""
|
44 |
|
45 |
return gr.HTML.update(html_out)
|
46 |
def aiornot1(image):
|
|
|
36 |
label = labels[prediction]
|
37 |
|
38 |
html_out = f"""
|
39 |
+
<h3>Model used: <a href src='https://huggingface.co/{mod}'>{mod}</a><br>
|
40 |
This image is likely: {label}<br>
|
41 |
Probabilites<br>
|
42 |
+
AI: {px[0][0]}<br>
|
43 |
+
Real: {px[1][0]}"""
|
44 |
|
45 |
return gr.HTML.update(html_out)
|
46 |
def aiornot1(image):
|