heerjtdev commited on
Commit
5ec75e6
Β·
verified Β·
1 Parent(s): 6449406

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -167,7 +167,6 @@
167
 
168
 
169
 
170
-
171
  import gradio as gr
172
  print("GRADIO VERSION:", gr.__version__)
173
  import json
@@ -244,10 +243,12 @@ def process_pdf(pdf_file, layoutlmv3_model_path=None):
244
 
245
 
246
  with gr.Blocks(
247
- title="Document Analysis Pipeline",
248
- css=CUSTOM_CSS # <-- here is the fix, inline CSS string instead of css_paths
249
  ) as demo:
250
 
 
 
 
251
  gr.Markdown("""
252
  # πŸ“„ Document Analysis Pipeline
253
 
 
167
 
168
 
169
 
 
170
  import gradio as gr
171
  print("GRADIO VERSION:", gr.__version__)
172
  import json
 
243
 
244
 
245
  with gr.Blocks(
246
+ title="Document Analysis Pipeline"
 
247
  ) as demo:
248
 
249
+ # Inject custom CSS here as an inline style tag
250
+ gr.HTML(f"<style>{CUSTOM_CSS}</style>")
251
+
252
  gr.Markdown("""
253
  # πŸ“„ Document Analysis Pipeline
254