verkaDerkaDerk commited on
Commit
701acc2
1 Parent(s): 760a850

Seems gradios changes source to sources which broke things

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -50,7 +50,7 @@ class FaceMeshWorkflow:
50
  # image input and annotated output
51
 
52
  with gr.Row():
53
- upload_image = gr.Image(label="Input image", type="numpy", source="upload")
54
  flat_inn.append( upload_image )
55
  examples = gr.Examples( examples=self.examples(), inputs=[upload_image] )
56
  detect_button = gr.Button(value="Detect Faces")
@@ -249,7 +249,7 @@ class FaceMeshWorkflow:
249
  return gr.Model3D(clear_color=3*[0], label=f"{name} mesh", elem_id='mesh-display-output')
250
 
251
  def img(self, name:str, src:str='upload'):
252
- return gr.Image(label=name,elem_id='img-display-output',source=src)
253
 
254
  def examples(self) -> List[str]:
255
  return glob.glob('examples/*png')
 
50
  # image input and annotated output
51
 
52
  with gr.Row():
53
+ upload_image = gr.Image(label="Input image", type="numpy", sources=["upload"])
54
  flat_inn.append( upload_image )
55
  examples = gr.Examples( examples=self.examples(), inputs=[upload_image] )
56
  detect_button = gr.Button(value="Detect Faces")
 
249
  return gr.Model3D(clear_color=3*[0], label=f"{name} mesh", elem_id='mesh-display-output')
250
 
251
  def img(self, name:str, src:str='upload'):
252
+ return gr.Image(label=name,elem_id='img-display-output',sources=[src])
253
 
254
  def examples(self) -> List[str]:
255
  return glob.glob('examples/*png')