baxin commited on
Commit
82e57c5
·
verified ·
1 Parent(s): 89516a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -2
app.py CHANGED
@@ -17,7 +17,6 @@ def extract_text(image_path):
17
  except Exception as e:
18
  return f"An error occurred: {str(e)}"
19
 
20
- # Create the Gradio interface (same as before)
21
  iface = gr.Interface(
22
  fn=extract_text,
23
  inputs=gr.Image(type="filepath", label="Upload an image"),
@@ -26,5 +25,4 @@ iface = gr.Interface(
26
  description="Upload an image and extract text from it using OCR."
27
  )
28
 
29
- # Launch the interface
30
  iface.launch(server_name="0.0.0.0", server_port=7860)
 
17
  except Exception as e:
18
  return f"An error occurred: {str(e)}"
19
 
 
20
  iface = gr.Interface(
21
  fn=extract_text,
22
  inputs=gr.Image(type="filepath", label="Upload an image"),
 
25
  description="Upload an image and extract text from it using OCR."
26
  )
27
 
 
28
  iface.launch(server_name="0.0.0.0", server_port=7860)