PuristanLabs1 commited on
Commit
664f58e
·
verified ·
1 Parent(s): 6275321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -570,8 +570,9 @@ def rectify_image(distorted_image):
570
  # --- Gradio Interface ---
571
 
572
  DESCRIPTION = """
573
- # DocScanner: Document Image Rectification
574
- This Space demonstrates DocScanner, a deep learning model that automatically corrects geometric distortions in document images.
 
575
  If you have a photo of a document that is warped, skewed, or has curled edges, this tool can transform it into a flat,
576
  top-down, scanner-like image.
577
 
@@ -584,7 +585,7 @@ This application is an implementation of the research paper: DocScanner: Robust
584
  2. Submit: Click the "Submit" button to begin the rectification process.
585
  3. View the Result: The corrected, flattened document will appear in the output box on the right.
586
 
587
- #Technical Details
588
 
589
  * Model: This demo uses the DocScanner-L model, as described in the paper.
590
  * Technology: The application is built with Python, PyTorch, and the Gradio library.
@@ -596,7 +597,7 @@ if __name__ == "__main__":
596
  fn=rectify_image,
597
  inputs=gr.Image(type="numpy", label="Upload Distorted Document"),
598
  outputs=gr.Image(type="numpy", label="Rectified Document"),
599
- title="DocScanner Document Rectification",
600
  description=DESCRIPTION,
601
  examples=[
602
  ['distorted/27_2 copy.png'],
 
570
  # --- Gradio Interface ---
571
 
572
  DESCRIPTION = """
573
+
574
+ This Space demonstrates DocScanner, a deep learning model that automatically corrects geometric distortions in document images.
575
+
576
  If you have a photo of a document that is warped, skewed, or has curled edges, this tool can transform it into a flat,
577
  top-down, scanner-like image.
578
 
 
585
  2. Submit: Click the "Submit" button to begin the rectification process.
586
  3. View the Result: The corrected, flattened document will appear in the output box on the right.
587
 
588
+ # Technical Details
589
 
590
  * Model: This demo uses the DocScanner-L model, as described in the paper.
591
  * Technology: The application is built with Python, PyTorch, and the Gradio library.
 
597
  fn=rectify_image,
598
  inputs=gr.Image(type="numpy", label="Upload Distorted Document"),
599
  outputs=gr.Image(type="numpy", label="Rectified Document"),
600
+ title="DocScanner: Document Image Rectification",
601
  description=DESCRIPTION,
602
  examples=[
603
  ['distorted/27_2 copy.png'],