Manjushri commited on
Commit
46649eb
1 Parent(s): a6ac1c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -26,5 +26,10 @@ def predict(source_img, prompt):
26
  return image
27
 
28
  title="SDXL Turbo Inpainting CPU"
29
- description="Inpainting with SDXL Turbo <br />Warning: Slow process... ~10 min inference time.<br> <b>Please use square .png image as input, 512x512, 768x768, or 1024x1024</b>"
30
- gr.Interface(fn=predict, inputs=[gr.Image(source="upload", type="numpy", tool="sketch", elem_id="source_container"), gr.Textbox(label='What you want the AI to Generate, 77 Token limit')], outputs='image', title=title, description=description, article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(max_threads=True, debug=True)
 
 
 
 
 
 
26
  return image
27
 
28
  title="SDXL Turbo Inpainting CPU"
29
+ description="Inpainting with SDXL Turbo <br><br> <b>Please use square .png image as input, 512x512, 768x768, or 1024x1024</b>"
30
+ gr.Interface(fn=predict, inputs=[gr.Image(source=("upload", "webcam"), type="numpy", tool="sketch", elem_id="source_container"),
31
+ gr.Textbox(label='What you want the AI to Generate, 77 Token limit')],
32
+ outputs='image',
33
+ title=title,
34
+ description=description,
35
+ article = "Code Monkey: <a href=\"https://huggingface.co/Manjushri\">Manjushri</a>").launch(max_threads=True, debug=True)