dhanishetty commited on
Commit
53d49cb
·
verified ·
1 Parent(s): e18064f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -38,9 +38,16 @@ def ocr_image_file(image1, end_point, API_Key):
38
  output = "*** Please check EndPoint URL and API_KEY ***"
39
 
40
  return output
 
 
 
 
 
41
 
42
  demo = gr.Interface( ocr_image_file,
43
  [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)],
44
- [gr.Textbox(label = "Output")]
 
 
45
 
46
  ).launch()
 
38
  output = "*** Please check EndPoint URL and API_KEY ***"
39
 
40
  return output
41
+
42
+ title = "Provide an Image"
43
+ description = """
44
+ # Computer Vision : OCR or Optical Character Recognition for text recognition or text extraction.
45
+ """
46
 
47
  demo = gr.Interface( ocr_image_file,
48
  [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)],
49
+ [gr.Textbox(label = "Output"),
50
+ title=title,
51
+ description=description,]
52
 
53
  ).launch()