Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

Fix indentation and syntax errors in app.py

Tiioluwani419baf409150
diff --git a/multimodal_apps/glm-ocr-pro/app.py b/multimodal_apps/glm-ocr-pro/app.py
index 8547ad6..c6c4d7c 100644
--- a/multimodal_apps/glm-ocr-pro/app.py
+++ b/multimodal_apps/glm-ocr-pro/app.py
@@ -78,7 +78,7 @@ with col1:
use_grayscale = st.checkbox("Enable Grayscale (Recommended)", value=default_gray)
max_side = st.number_input("Max Side (px)", 400, 2400, default_side, step=100)
pdf_render_scale = st.number_input("PDF Rendering Scale", 1.0, 3.0, float(default_render), step=0.1)
- num_predict = st.number_input("Max Output Tokens", 256, 8192, 2048, step=256)
+ num_predict = st.number_input("Max Output Tokens", 256, 8192, 2048, step=256)
if st.button("🚀 Extract Knowledge", type="primary", use_container_width=True):
@@ -103,7 +103,8 @@ with col1:
grayscale=use_grayscale,
pdf_render_scale=pdf_render_scale,
num_predict=int(num_predict),
- ): full_text += chunk
+ ):
+ full_text += chunk
# Prettify rendering during stream
output_placeholder.markdown(full_text)