hchcsuim commited on
Commit
ee97c28
Β·
verified Β·
1 Parent(s): d349dcb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
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 εˆζˆεœ–γ€‚\n\n"
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