Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,14 +155,15 @@ with gr.Blocks(title="GLM-OCR") as demo:
|
|
| 155 |
sources=["upload", "clipboard"],
|
| 156 |
height=300
|
| 157 |
)
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
|
|
|
| 166 |
|
| 167 |
gr.Examples(
|
| 168 |
examples=["examples/1.jpg", "examples/2.jpg", "examples/3.jpg"],
|
|
|
|
| 155 |
sources=["upload", "clipboard"],
|
| 156 |
height=300
|
| 157 |
)
|
| 158 |
+
with gr.Row():
|
| 159 |
+
task = gr.Radio(
|
| 160 |
+
choices=list(TASK_PROMPTS.keys()),
|
| 161 |
+
value="Text",
|
| 162 |
+
label="Recognition Type"
|
| 163 |
+
)
|
| 164 |
+
|
| 165 |
+
with gr.Row():
|
| 166 |
+
btn = gr.Button("Recognize", variant="primary")
|
| 167 |
|
| 168 |
gr.Examples(
|
| 169 |
examples=["examples/1.jpg", "examples/2.jpg", "examples/3.jpg"],
|