Spaces:
Running on Zero
Running on Zero
update app
Browse files
app.py
CHANGED
|
@@ -141,10 +141,19 @@ def process_image(image, task):
|
|
| 141 |
|
| 142 |
return output_text.strip()
|
| 143 |
|
| 144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 145 |
|
| 146 |
-
gr.Markdown("# GLM-OCR")
|
| 147 |
-
gr.Markdown("
|
| 148 |
|
| 149 |
with gr.Row():
|
| 150 |
|
|
@@ -177,7 +186,6 @@ with gr.Blocks(title="GLM-OCR") as demo:
|
|
| 177 |
output_text = gr.Textbox(
|
| 178 |
label="Output",
|
| 179 |
lines=18,
|
| 180 |
-
show_copy_button=True
|
| 181 |
)
|
| 182 |
|
| 183 |
with gr.Tab("Markdown"):
|
|
|
|
| 141 |
|
| 142 |
return output_text.strip()
|
| 143 |
|
| 144 |
+
|
| 145 |
+
css="""
|
| 146 |
+
#col-container {
|
| 147 |
+
margin: 0 auto;
|
| 148 |
+
max-width: 1000px;
|
| 149 |
+
}
|
| 150 |
+
#main-title h1 {font-size: 2.3em !important;}
|
| 151 |
+
"""
|
| 152 |
+
|
| 153 |
+
with gr.Blocks() as demo:
|
| 154 |
|
| 155 |
+
gr.Markdown("# **GLM-OCR**", elem_id="main-title")
|
| 156 |
+
gr.Markdown("Multimodal OCR model for complex document understanding.")
|
| 157 |
|
| 158 |
with gr.Row():
|
| 159 |
|
|
|
|
| 186 |
output_text = gr.Textbox(
|
| 187 |
label="Output",
|
| 188 |
lines=18,
|
|
|
|
| 189 |
)
|
| 190 |
|
| 191 |
with gr.Tab("Markdown"):
|