llmat commited on
Commit
596ff69
·
verified ·
1 Parent(s): 93dd2dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -108,7 +108,9 @@ Optical Character Recognition (OCR) is a technology used to convert different ty
108
  Please upload an image and select the correct order of steps to perform OCR. You can also adjust the threshold value using the slider.
109
  """
110
 
111
- image = gr.Image()
 
 
112
  steps = gr.CheckboxGroup(choices=tutorial_steps, label="Select and order the steps for OCR")
113
  threshold = gr.Slider(0, 255, value=127, step=1, label="Threshold Value")
114
  output = gr.Textbox(label="OCR Output")
@@ -131,3 +133,4 @@ quiz_app = gr.TabbedInterface(
131
 
132
  quiz_app.launch()
133
 
 
 
108
  Please upload an image and select the correct order of steps to perform OCR. You can also adjust the threshold value using the slider.
109
  """
110
 
111
+ example_image_path = "path_to_your_example_image.png" # Provide the path to your example image
112
+
113
+ image = gr.Image(value=example_image_path, tool="editor", label="Upload or edit image for OCR")
114
  steps = gr.CheckboxGroup(choices=tutorial_steps, label="Select and order the steps for OCR")
115
  threshold = gr.Slider(0, 255, value=127, step=1, label="Threshold Value")
116
  output = gr.Textbox(label="OCR Output")
 
133
 
134
  quiz_app.launch()
135
 
136
+