Update app.py
Browse files
app.py
CHANGED
@@ -1,12 +1,8 @@
|
|
1 |
# Importing the requirements
|
2 |
-
import subprocess
|
3 |
import gradio as gr
|
4 |
from src.task import ocr_task
|
5 |
|
6 |
|
7 |
-
# Install the required dependencies
|
8 |
-
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
9 |
-
|
10 |
# Image input for the interface
|
11 |
image = gr.Image(type="pil", label="Image")
|
12 |
|
|
|
1 |
# Importing the requirements
|
|
|
2 |
import gradio as gr
|
3 |
from src.task import ocr_task
|
4 |
|
5 |
|
|
|
|
|
|
|
6 |
# Image input for the interface
|
7 |
image = gr.Image(type="pil", label="Image")
|
8 |
|