Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -85,8 +85,8 @@ def aiornot0(image):
|
|
85 |
<h1>This image is likely: {label}</h1><br><h3>
|
86 |
|
87 |
Probabilites:<br>
|
88 |
-
Real: {px[
|
89 |
-
AI: {px[
|
90 |
results = {}
|
91 |
for idx,result in enumerate(px):
|
92 |
results[labels[idx]] = px[idx][0]
|
@@ -110,8 +110,8 @@ def aiornot1(image):
|
|
110 |
<h1>This image is likely: {label}</h1><br><h3>
|
111 |
|
112 |
Probabilites:<br>
|
113 |
-
Real: {px[
|
114 |
-
AI: {px[
|
115 |
results = {}
|
116 |
for idx,result in enumerate(px):
|
117 |
results[labels[idx]] = px[idx][0]
|
@@ -135,8 +135,8 @@ def aiornot2(image):
|
|
135 |
<h1>This image is likely: {label}</h1><br><h3>
|
136 |
|
137 |
Probabilites:<br>
|
138 |
-
Real: {px[
|
139 |
-
AI: {px[
|
140 |
|
141 |
results = {}
|
142 |
for idx,result in enumerate(px):
|
|
|
85 |
<h1>This image is likely: {label}</h1><br><h3>
|
86 |
|
87 |
Probabilites:<br>
|
88 |
+
Real: {px[1][0]}<br>
|
89 |
+
AI: {px[0][0]}"""
|
90 |
results = {}
|
91 |
for idx,result in enumerate(px):
|
92 |
results[labels[idx]] = px[idx][0]
|
|
|
110 |
<h1>This image is likely: {label}</h1><br><h3>
|
111 |
|
112 |
Probabilites:<br>
|
113 |
+
Real: {px[1][0]}<br>
|
114 |
+
AI: {px[0][0]}"""
|
115 |
results = {}
|
116 |
for idx,result in enumerate(px):
|
117 |
results[labels[idx]] = px[idx][0]
|
|
|
135 |
<h1>This image is likely: {label}</h1><br><h3>
|
136 |
|
137 |
Probabilites:<br>
|
138 |
+
Real: {px[0][0]}<br>
|
139 |
+
AI: {px[1][0]}"""
|
140 |
|
141 |
results = {}
|
142 |
for idx,result in enumerate(px):
|