Diego-0121 commited on
Commit
53943e4
·
1 Parent(s): 9e25c04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -13,7 +13,7 @@ def extract_text_from_image(image):
13
  # Define Gradio interface
14
  iface = gr.Interface(
15
  fn=extract_text_from_image,
16
- inputs=gr.Image (label="Upload Image"),
17
  outputs="text",
18
  title="OCR APP ",
19
  description="Upload an image and we'll extract the text for you.",
@@ -21,6 +21,6 @@ iface = gr.Interface(
21
  )
22
 
23
  # Launch Gradio Interface
24
- iface.launch(share=True)
25
 
26
 
 
13
  # Define Gradio interface
14
  iface = gr.Interface(
15
  fn=extract_text_from_image,
16
+ inputs=gr.Image (numpy ="file", label="Upload Image"),
17
  outputs="text",
18
  title="OCR APP ",
19
  description="Upload an image and we'll extract the text for you.",
 
21
  )
22
 
23
  # Launch Gradio Interface
24
+ iface.launch()
25
 
26