AryanVerma64 commited on
Commit
8d8bbf1
·
verified ·
1 Parent(s): fbc5bde

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -11,8 +11,8 @@ css = "footer {display: none !important;}"
11
 
12
  # sample images
13
  examples = [
14
- ["", None, "images/1.jpg"],
15
- ["", None, "images/sample-handwritten-2.PNG"]
16
  ]
17
 
18
  #you can load any model from huggingface
@@ -39,7 +39,7 @@ def predict(ImageUrl,imgDraw,imgUplod):
39
  #gradio interface
40
  interface = gr.Interface(
41
  fn=predict,
42
- inputs=["text", gr.Image(type="pil"), gr.Image(type="pil")],
43
  outputs="text",
44
  title=title,
45
  description=description,
 
11
 
12
  # sample images
13
  examples = [
14
+ ["", "images/1.jpg", "images/1.jpg"],
15
+ ["", "images/sample-handwritten-2.PNG", "images/sample-handwritten-2.PNG"]
16
  ]
17
 
18
  #you can load any model from huggingface
 
39
  #gradio interface
40
  interface = gr.Interface(
41
  fn=predict,
42
+ inputs=["text", gr.Image(type="pil", source="canvas"), gr.Image(type="pil")],
43
  outputs="text",
44
  title=title,
45
  description=description,