dhanishetty commited on
Commit
56a0ce0
·
verified ·
1 Parent(s): d79fc4c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from azure.ai.vision.imageanalysis.models import VisualFeatures
4
  from azure.core.credentials import AzureKeyCredential
5
 
6
 
7
- def sample_ocr_image_file(image1, end_point, API_Key):
8
 
9
  if (end_point == '' or API_Key == ''):
10
  output = "*** Please provide EndPoint URL and API_KEY ***"
@@ -38,7 +38,7 @@ def sample_ocr_image_file(image1, end_point, API_Key):
38
 
39
  return output
40
 
41
- demo = gr.Interface( sample_ocr_image_file,
42
  [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)],
43
  [gr.Textbox(label = "Output")]
44
 
 
4
  from azure.core.credentials import AzureKeyCredential
5
 
6
 
7
+ def objects_image_file(image1, end_point, API_Key):
8
 
9
  if (end_point == '' or API_Key == ''):
10
  output = "*** Please provide EndPoint URL and API_KEY ***"
 
38
 
39
  return output
40
 
41
+ demo = gr.Interface( objects_image_file,
42
  [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)],
43
  [gr.Textbox(label = "Output")]
44