Spaces:
Runtime error
Runtime error
Yash Malviya
commited on
Commit
•
060de37
1
Parent(s):
0ab2d51
added try
Browse files
app.py
CHANGED
@@ -6,10 +6,9 @@ import gradio as gr
|
|
6 |
import pandas as pd
|
7 |
import subprocess
|
8 |
import os
|
9 |
-
|
10 |
# Install flash-attn without CUDA build
|
11 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
12 |
-
|
13 |
# Load the model and processor
|
14 |
model_id = "yifeihu/TB-OCR-preview-0.1"
|
15 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
|
|
6 |
import pandas as pd
|
7 |
import subprocess
|
8 |
import os
|
9 |
+
# try one more time
|
10 |
# Install flash-attn without CUDA build
|
11 |
subprocess.run('pip install flash-attn --no-build-isolation', env={'FLASH_ATTENTION_SKIP_CUDA_BUILD': "TRUE"}, shell=True)
|
|
|
12 |
# Load the model and processor
|
13 |
model_id = "yifeihu/TB-OCR-preview-0.1"
|
14 |
DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|