GoConqurer commited on
Commit
796f321
Β·
1 Parent(s): a9284cc

πŸ—‘οΈ Comment out example usage instructions in interface.py for a cleaner interface and improved code organization.

Browse files
Files changed (1) hide show
  1. ui/interface.py +18 -18
ui/interface.py CHANGED
@@ -50,15 +50,15 @@ def create_interface():
50
  size="lg"
51
  )
52
 
53
- gr.Markdown("### πŸ“– Try with examples:", elem_classes=["markdown-text"])
54
- gr.Markdown("""
55
- **Try uploading an image with text:**
56
- β€’ Screenshots of documents
57
- β€’ Photos of signs or billboards
58
- β€’ Handwritten notes
59
- β€’ Menu cards or receipts
60
- β€’ Book pages or articles
61
- """, elem_classes=["markdown-text"])
62
 
63
  with gr.Column(scale=1):
64
  gr.Markdown("### πŸ“ Extracted Text", elem_classes=["markdown-text"])
@@ -70,15 +70,15 @@ def create_interface():
70
  show_copy_button=True
71
  )
72
 
73
- gr.Markdown("""
74
- **πŸ’‘ Tips:**
75
- - Higher resolution images generally give better results
76
- - Ensure text is clearly visible and not blurry
77
- - The model works best with printed text but also supports handwriting
78
- - First-time model loading may take 2-3 minutes
79
- """,
80
- elem_classes=["tips-section"]
81
- )
82
 
83
  # # Usage instructions
84
  # with gr.Row():
 
50
  size="lg"
51
  )
52
 
53
+ # gr.Markdown("### πŸ“– Try with examples:", elem_classes=["markdown-text"])
54
+ # gr.Markdown("""
55
+ # **Try uploading an image with text:**
56
+ # β€’ Screenshots of documents
57
+ # β€’ Photos of signs or billboards
58
+ # β€’ Handwritten notes
59
+ # β€’ Menu cards or receipts
60
+ # β€’ Book pages or articles
61
+ # """, elem_classes=["markdown-text"])
62
 
63
  with gr.Column(scale=1):
64
  gr.Markdown("### πŸ“ Extracted Text", elem_classes=["markdown-text"])
 
70
  show_copy_button=True
71
  )
72
 
73
+ # gr.Markdown("""
74
+ # **πŸ’‘ Tips:**
75
+ # - Higher resolution images generally give better results
76
+ # - Ensure text is clearly visible and not blurry
77
+ # - The model works best with printed text but also supports handwriting
78
+ # - First-time model loading may take 2-3 minutes
79
+ # """,
80
+ # elem_classes=["tips-section"]
81
+ # )
82
 
83
  # # Usage instructions
84
  # with gr.Row():