ProgramerSalar commited on
Commit
41ad755
·
1 Parent(s): 41b8aa3
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +2 -2
__pycache__/app.cpython-310.pyc CHANGED
Binary files a/__pycache__/app.cpython-310.pyc and b/__pycache__/app.cpython-310.pyc differ
 
app.py CHANGED
@@ -66,7 +66,7 @@ def gemini_output(image_path,
66
 
67
  custom_css = """
68
  .image_preview {
69
- overflow-y: scroll !important;
70
  }
71
 
72
  .big-font textarea {
@@ -104,7 +104,7 @@ def extract_text(image_path):
104
  # Create the Gradio interface
105
  iface = gr.Interface(
106
  fn=extract_text,
107
- inputs=gr.Image(type="pil"), # Accept PIL images directly
108
  outputs=gr.Textbox(lines=20,
109
  max_lines=10,
110
  label='Extracted Text',
 
66
 
67
  custom_css = """
68
  .image_preview {
69
+ max-height: 800px; overflow-y: auto !important;
70
  }
71
 
72
  .big-font textarea {
 
104
  # Create the Gradio interface
105
  iface = gr.Interface(
106
  fn=extract_text,
107
+ inputs=gr.Image(type="pil", elem_classes=["image_preview"]), # Accept PIL images directly
108
  outputs=gr.Textbox(lines=20,
109
  max_lines=10,
110
  label='Extracted Text',