myhloli commited on
Commit
a81b60a
·
verified ·
1 Parent(s): 902ad6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,7 +16,7 @@ os.system("sed -i 's|cpu|cuda|g' /home/user/magic-pdf.json")
16
 
17
  os.system('cp -r paddleocr /home/user/.paddleocr')
18
 
19
- os.system("pip install gradio-pdf==0.0.15")
20
  from gradio_pdf import PDF
21
 
22
  import gradio as gr
@@ -150,7 +150,7 @@ with open("header.html", "r") as file:
150
 
151
 
152
  if __name__ == "__main__":
153
- with gr.Blocks() as demo:
154
  gr.HTML(header)
155
  with gr.Row():
156
  with gr.Column(variant='panel', scale=5):
 
16
 
17
  os.system('cp -r paddleocr /home/user/.paddleocr')
18
 
19
+ os.system("pip install gradio-pdf==0.0.17")
20
  from gradio_pdf import PDF
21
 
22
  import gradio as gr
 
150
 
151
 
152
  if __name__ == "__main__":
153
+ with gr.Blocks(theme=gr.themes.Origin()) as demo:
154
  gr.HTML(header)
155
  with gr.Row():
156
  with gr.Column(variant='panel', scale=5):