Spaces:
Running
Running
Commit
Β·
796f321
1
Parent(s):
a9284cc
ποΈ Comment out example usage instructions in interface.py for a cleaner interface and improved code organization.
Browse files- 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 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 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 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 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():
|