Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,8 +12,10 @@ def predict(input_img):
|
|
| 12 |
predictions = pipe(input_img)
|
| 13 |
return input_img, {p["label"]: p["score"] for p in predictions}
|
| 14 |
|
| 15 |
-
#
|
| 16 |
model_card = """
|
|
|
|
|
|
|
| 17 |
## π§ Model Description / 樑εη°‘δ»
|
| 18 |
|
| 19 |
This model is a fine-tuned version of `microsoft/swin-tiny-patch4-window7-224` on the imagefolder dataset.
|
|
@@ -47,12 +49,12 @@ gradio_app = gr.Interface(
|
|
| 47 |
gr.Image(label="πΌοΈ Input Image / θΌΈε
₯εη"),
|
| 48 |
gr.Label(label="π Classification Result / ε€ζ·η΅ζ", num_top_classes=2)
|
| 49 |
],
|
| 50 |
-
title="FaceAIorNot ο½ ηδΊΊθοΌιζ― AI
|
| 51 |
description=(
|
| 52 |
"π€ Upload or take a face photo to see if it's AI-generated or real.\n"
|
| 53 |
-
"π§ δΈε³ζζζδΈεΌ΅θι¨η
§ηοΌε€ζ·ζ―ηδΊΊιζ― AI
|
| 54 |
-
+ model_card
|
| 55 |
),
|
|
|
|
| 56 |
allow_flagging="never"
|
| 57 |
)
|
| 58 |
|
|
|
|
| 12 |
predictions = pipe(input_img)
|
| 13 |
return input_img, {p["label"]: p["score"] for p in predictions}
|
| 14 |
|
| 15 |
+
# 樑εθͺͺζθε
責θ²ζοΌζζΎε¨ζδΈζΉοΌ
|
| 16 |
model_card = """
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
## π§ Model Description / 樑εη°‘δ»
|
| 20 |
|
| 21 |
This model is a fine-tuned version of `microsoft/swin-tiny-patch4-window7-224` on the imagefolder dataset.
|
|
|
|
| 49 |
gr.Image(label="πΌοΈ Input Image / θΌΈε
₯εη"),
|
| 50 |
gr.Label(label="π Classification Result / ε€ζ·η΅ζ", num_top_classes=2)
|
| 51 |
],
|
| 52 |
+
title="FaceAIorNot ο½ ηδΊΊθοΌιζ― AI ηζθοΌ",
|
| 53 |
description=(
|
| 54 |
"π€ Upload or take a face photo to see if it's AI-generated or real.\n"
|
| 55 |
+
"π§ δΈε³ζζζδΈεΌ΅θι¨η
§ηοΌε€ζ·ζ―ηδΊΊιζ― AI εζεγ"
|
|
|
|
| 56 |
),
|
| 57 |
+
article=model_card,
|
| 58 |
allow_flagging="never"
|
| 59 |
)
|
| 60 |
|