dhanishetty commited on
Commit
94173d8
·
verified ·
1 Parent(s): ad2a5b9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"], lines=3), 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,
 
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,