vikasdeep commited on
Commit
5220482
·
verified ·
1 Parent(s): eb405bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -81,11 +81,11 @@ interface = gr.Interface(
81
  gr.outputs.Image(label="Face with Explainability", type="pil")
82
  ],
83
  ).launch()
84
- # from gradio_client import Client
85
 
86
- # client = Client("https://vikasdeep-deepfacedetection.hf.space/")
87
- # result = client.predict(
88
- # "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # str (filepath on your computer (or URL) of image) in 'Input Image' Image component
89
- # api_name="/predict"
90
- # )
91
- # print(result)
 
81
  gr.outputs.Image(label="Face with Explainability", type="pil")
82
  ],
83
  ).launch()
84
+ from gradio_client import Client
85
 
86
+ client = Client("https://vikasdeep-deepfacedetection.hf.space/")
87
+ result = client.predict(
88
+ "https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png", # str (filepath on your computer (or URL) of image) in 'Input Image' Image component
89
+ api_name="/predict"
90
+ )
91
+ print(result)