Spaces:
Running
on
Zero
Running
on
Zero
add groups , interface, howto images
Browse files- app.py +10 -2
- globe.py +2 -2
- res/image/howto_1.png +0 -0
- res/image/howto_2.png +0 -0
- res/image/howto_3.png +0 -0
- res/image/howto_4.png +0 -0
app.py
CHANGED
@@ -160,14 +160,22 @@ with gr.Blocks(theme=gr.themes.Base()) as demo:
|
|
160 |
gr.Markdown(title)
|
161 |
with gr.Row():
|
162 |
with gr.Column(scale=1):
|
163 |
-
gr.
|
|
|
164 |
with gr.Column(scale=1):
|
165 |
with gr.Group():
|
166 |
gr.Markdown(modelinfor)
|
167 |
gr.Markdown(joinus)
|
168 |
with gr.Row():
|
169 |
with gr.Accordion("How to use Fine-grained OCR (Color)", open=False):
|
170 |
-
gr.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
with gr.Row():
|
172 |
with gr.Column(scale=1):
|
173 |
with gr.Group():
|
|
|
160 |
gr.Markdown(title)
|
161 |
with gr.Row():
|
162 |
with gr.Column(scale=1):
|
163 |
+
with gr.Group():
|
164 |
+
gr.Markdown(description)
|
165 |
with gr.Column(scale=1):
|
166 |
with gr.Group():
|
167 |
gr.Markdown(modelinfor)
|
168 |
gr.Markdown(joinus)
|
169 |
with gr.Row():
|
170 |
with gr.Accordion("How to use Fine-grained OCR (Color)", open=False):
|
171 |
+
with gr.Row():
|
172 |
+
with gr.Column:
|
173 |
+
with gr.Group():
|
174 |
+
gr.Markdown(howto)
|
175 |
+
with gr.Group():
|
176 |
+
for i in range(5):
|
177 |
+
with gr.Column():
|
178 |
+
gr.Image(f"res/image/howto_{i+1}.png", label=f"How To Step {i+1}")
|
179 |
with gr.Row():
|
180 |
with gr.Column(scale=1):
|
181 |
with gr.Group():
|
globe.py
CHANGED
@@ -35,7 +35,7 @@ modelinfor = """
|
|
35 |
3. (Optional) Adjust parameters based on the selected task.
|
36 |
4. Click **Process** to view the results.
|
37 |
|
38 |
-
|
39 |
|
40 |
- **Model Name**: GOT-OCR 2.0
|
41 |
- **Hugging Face Repository**: [ucaslcl/GOT-OCR2_0](https://huggingface.co/ucaslcl/GOT-OCR2_0)
|
@@ -55,7 +55,7 @@ ocr_types = ["ocr", "format"]
|
|
55 |
ocr_colors = ["red", "green", "blue"]
|
56 |
|
57 |
howto = """
|
58 |
-
To use Fine-grained OCR (Color):
|
59 |
1. Click on 'Fine-grained OCR (Color)' in the task dropdown.
|
60 |
2. Set 'OCR Type' to 'ocr'.
|
61 |
3. This will display the image editor.
|
|
|
35 |
3. (Optional) Adjust parameters based on the selected task.
|
36 |
4. Click **Process** to view the results.
|
37 |
|
38 |
+
## Model Information
|
39 |
|
40 |
- **Model Name**: GOT-OCR 2.0
|
41 |
- **Hugging Face Repository**: [ucaslcl/GOT-OCR2_0](https://huggingface.co/ucaslcl/GOT-OCR2_0)
|
|
|
55 |
ocr_colors = ["red", "green", "blue"]
|
56 |
|
57 |
howto = """
|
58 |
+
## To use Fine-grained OCR (Color):
|
59 |
1. Click on 'Fine-grained OCR (Color)' in the task dropdown.
|
60 |
2. Set 'OCR Type' to 'ocr'.
|
61 |
3. This will display the image editor.
|
res/image/howto_1.png
ADDED
res/image/howto_2.png
ADDED
res/image/howto_3.png
ADDED
res/image/howto_4.png
ADDED