Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,12 +41,12 @@ def ocr_image_file(image1, end_point, API_Key):
|
|
| 41 |
|
| 42 |
title = "Azure Cognitive Services"
|
| 43 |
description = """
|
| 44 |
-
"img.png"
|
| 45 |
# Computer Vision : OCR or Optical Character Recognition for text recognition or text extraction.
|
| 46 |
"""
|
| 47 |
|
| 48 |
demo = gr.Interface( ocr_image_file,
|
| 49 |
-
[gr.UploadButton("Click to Upload an Image File", file_types=["image"]
|
| 50 |
[gr.Textbox(label = "Output")],
|
| 51 |
title=title,
|
| 52 |
description=description,
|
|
|
|
| 41 |
|
| 42 |
title = "Azure Cognitive Services"
|
| 43 |
description = """
|
| 44 |
+
<img src = "img.png" width = 300px>
|
| 45 |
# Computer Vision : OCR or Optical Character Recognition for text recognition or text extraction.
|
| 46 |
"""
|
| 47 |
|
| 48 |
demo = gr.Interface( ocr_image_file,
|
| 49 |
+
[gr.UploadButton("Click to Upload an Image File", file_types=["image"]), gr.Textbox(label="Enter your Endpoint URL", placeholder="URL", lines=1),gr.Textbox(type = "password", label="Enter your API-Key", placeholder="API-Key", lines=1)],
|
| 50 |
[gr.Textbox(label = "Output")],
|
| 51 |
title=title,
|
| 52 |
description=description,
|