Zeyadd-Mostaffa commited on
Commit
6ac5675
·
verified ·
1 Parent(s): b26c2e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -30,12 +30,11 @@ def predict(image):
30
 
31
  return label
32
 
33
- interface = gr.Interface(
34
  fn=predict,
35
- inputs=gr.Image(type="numpy", label="Upload Image"),
36
- outputs=gr.Label(label="Prediction"),
37
- title="Deepfake Image Detector",
38
- description="Upload a full image. The model classifies it as real or fake."
39
  )
40
 
41
- interface.launch()
 
30
 
31
  return label
32
 
33
+ iface = gr.Interface(
34
  fn=predict,
35
+ inputs=gr.Image(type="filepath"),
36
+ outputs=gr.JSON(), # <-- very important
37
+ live=False
 
38
  )
39
 
40
+ iface.launch()