Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def classify_image(image):
|
|
21 |
outputs = model(**inputs)
|
22 |
|
23 |
results = torch.matmul(outputs.pooler_output.squeeze(), matrix.squeeze())
|
24 |
-
return {'
|
25 |
|
26 |
|
27 |
# Create Gradio interface
|
|
|
21 |
outputs = model(**inputs)
|
22 |
|
23 |
results = torch.matmul(outputs.pooler_output.squeeze(), matrix.squeeze())
|
24 |
+
return {'Our confidence of this image being AI generated': torch.nn.functional.sigmoid(results + torch.Tensor([0.9791784]))}
|
25 |
|
26 |
|
27 |
# Create Gradio interface
|