franciszzj commited on
Commit
f6ccb67
1 Parent(s): 01b1b55
Files changed (2) hide show
  1. app.py +1 -1
  2. demo.py +1 -1
app.py CHANGED
@@ -112,7 +112,7 @@ if __name__ == "__main__":
112
 
113
  # Launch a gr.Interface
114
  gr_demo = gr.Interface(fn=demo,
115
- inputs=gr.Image(source="upload",
116
  type="filepath",
117
  label="Input Image",
118
  width=768,
 
112
 
113
  # Launch a gr.Interface
114
  gr_demo = gr.Interface(fn=demo,
115
+ inputs=gr.Image(sources=["upload", "webcam", "clipboard"],
116
  type="filepath",
117
  label="Input Image",
118
  width=768,
demo.py CHANGED
@@ -112,7 +112,7 @@ if __name__ == "__main__":
112
 
113
  # Launch a gr.Interface
114
  gr_demo = gr.Interface(fn=demo,
115
- inputs=gr.Image(source="upload",
116
  type="filepath",
117
  label="Input Image",
118
  width=768,
 
112
 
113
  # Launch a gr.Interface
114
  gr_demo = gr.Interface(fn=demo,
115
+ inputs=gr.Image(sources=["upload", "webcam", "clipboard"],
116
  type="filepath",
117
  label="Input Image",
118
  width=768,