Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
import torch
|
3 |
from transformers import pipeline as hf_pipeline, AutoModelForSequenceClassification, AutoTokenizer
|
|
|
1 |
+
import subprocess
|
2 |
+
|
3 |
+
# debug line: will show up in your Container logs
|
4 |
+
res = subprocess.run(["which", "tesseract"], capture_output=True, text=True)
|
5 |
+
print("🔍 TESSERACT PATH:", repr(res.stdout.strip()), "— stderr:", repr(res.stderr.strip()))
|
6 |
import gradio as gr
|
7 |
import torch
|
8 |
from transformers import pipeline as hf_pipeline, AutoModelForSequenceClassification, AutoTokenizer
|