Spaces:
Running
on
Zero
Running
on
Zero
MohamedRashad
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,8 +11,8 @@ import spaces
|
|
11 |
from threading import Thread
|
12 |
from gradio_pdf import PDF
|
13 |
|
14 |
-
import
|
15 |
-
|
16 |
|
17 |
models_supported = {
|
18 |
"arabic-small-nougat": [
|
|
|
11 |
from threading import Thread
|
12 |
from gradio_pdf import PDF
|
13 |
|
14 |
+
import subprocess
|
15 |
+
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
16 |
|
17 |
models_supported = {
|
18 |
"arabic-small-nougat": [
|