Boboiazumi commited on
Commit
9441029
1 Parent(s): 9f851f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -39,7 +39,7 @@ torch.backends.cudnn.benchmark = False
39
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
40
 
41
  def fake_generate(*args,use_upscaler=False,**kwargs):
42
- print(kwargs)
43
 
44
  return None, None
45
 
@@ -321,7 +321,8 @@ with gr.Blocks(css="style.css", theme="NoCrypt/miku@1.2.1") as demo:
321
  image = gr.Image(
322
  label="Image Input",
323
  visible=False,
324
- type="filepath"
 
325
  )
326
  with gr.Accordion(label="Quality Tags", open=True):
327
  add_quality_tags = gr.Checkbox(
 
39
  device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
40
 
41
  def fake_generate(*args,use_upscaler=False,**kwargs):
42
+ print(args)
43
 
44
  return None, None
45
 
 
321
  image = gr.Image(
322
  label="Image Input",
323
  visible=False,
324
+ type="filepath",
325
+ sources=["upload", "webcam", "clipboard"]
326
  )
327
  with gr.Accordion(label="Quality Tags", open=True):
328
  add_quality_tags = gr.Checkbox(