Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ from openai import OpenAI
|
|
| 4 |
import streamlit as st
|
| 5 |
from PIL import Image
|
| 6 |
import pytesseract
|
|
|
|
| 7 |
|
| 8 |
# ✅ 使用默认 tesseract 路径,Hugging Face 会自动识别
|
| 9 |
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|
|
|
|
| 4 |
import streamlit as st
|
| 5 |
from PIL import Image
|
| 6 |
import pytesseract
|
| 7 |
+
import subprocess # ✅ 添加这一行!
|
| 8 |
|
| 9 |
# ✅ 使用默认 tesseract 路径,Hugging Face 会自动识别
|
| 10 |
client = OpenAI(api_key=os.getenv("OPENAI_API_KEY"))
|