vikasdeep commited on
Commit
3ce861e
·
verified ·
1 Parent(s): e001388

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import os
2
 
3
  os.system('pip install --force-reinstall gradio==3.39.0')
4
- os.system('pip install gradio_client')
5
  import gradio as gr
6
  import torch
7
  import torch.nn.functional as F
@@ -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)
 
1
  import os
2
 
3
  os.system('pip install --force-reinstall gradio==3.39.0')
4
+ # os.system('pip install gradio_client')
5
  import gradio as gr
6
  import torch
7
  import torch.nn.functional as F
 
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)