Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
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.
|
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):
|