Spaces:
Running
Running
Commit
Β·
a9284cc
1
Parent(s):
5b11d53
ποΈ Remove deployment_status.md and comment out usage instructions in interface.py for cleaner code and preparation for HuggingFace deployment
Browse files- deployment_status.md +0 -1
- ui/interface.py +15 -15
deployment_status.md
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
# Repository cleaned - ready for HuggingFace deployment
|
|
|
|
ui/interface.py
CHANGED
@@ -80,24 +80,24 @@ def create_interface():
|
|
80 |
elem_classes=["tips-section"]
|
81 |
)
|
82 |
|
83 |
-
# Usage instructions
|
84 |
-
with gr.Row():
|
85 |
-
|
86 |
-
|
87 |
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
|
93 |
-
|
94 |
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
# Event handlers
|
103 |
image_input.upload(
|
|
|
80 |
elem_classes=["tips-section"]
|
81 |
)
|
82 |
|
83 |
+
# # Usage instructions
|
84 |
+
# with gr.Row():
|
85 |
+
# gr.Markdown("""
|
86 |
+
# ### π§ How to Use
|
87 |
|
88 |
+
# 1. **Upload an Image**: Drag and drop, use webcam, or paste from clipboard
|
89 |
+
# 2. **Extract Text**: Click the "Extract Text" button or text extraction will start automatically
|
90 |
+
# 3. **Copy Results**: Use the copy button to copy extracted text
|
91 |
+
# 4. **Try Different Images**: Upload multiple images to test various scenarios
|
92 |
|
93 |
+
# ### β‘ Features
|
94 |
|
95 |
+
# - **Vision-Language Model**: Uses Microsoft Florence-2 for accurate text recognition
|
96 |
+
# - **Multiple Input Methods**: Upload files, use webcam, or paste from clipboard
|
97 |
+
# - **Auto-Processing**: Text extraction starts automatically when you upload an image
|
98 |
+
# - **GPU Acceleration**: Automatically uses GPU if available for faster processing
|
99 |
+
# - **Copy Functionality**: Easy one-click copying of extracted text
|
100 |
+
# """, elem_classes=["instructions-section"])
|
101 |
|
102 |
# Event handlers
|
103 |
image_input.upload(
|