Spaces:
Running
Running
Upload app.py
Browse files
app.py
CHANGED
|
@@ -11,8 +11,8 @@ css = "footer {display: none !important;}"
|
|
| 11 |
|
| 12 |
# sample images
|
| 13 |
examples = [
|
| 14 |
-
["",
|
| 15 |
-
["",
|
| 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,
|