Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,6 +7,12 @@ from PIL import Image
|
|
| 7 |
|
| 8 |
# Инициализация клиента для нового API
|
| 9 |
client = Client("https://pragnakalp-ocr-image-to-text.hf.space/--replicas/lhzf3/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
# Заголовок приложения
|
| 12 |
st.title("Video Frame to Image Description")
|
|
|
|
| 7 |
|
| 8 |
# Инициализация клиента для нового API
|
| 9 |
client = Client("https://pragnakalp-ocr-image-to-text.hf.space/--replicas/lhzf3/")
|
| 10 |
+
result = client.predict(
|
| 11 |
+
PaddleOCR, # Literal[PaddleOCR, EasyOCR, KerasOCR] in 'Method' Radio component
|
| 12 |
+
https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png, # filepath in 'img' Image component
|
| 13 |
+
api_name="/predict"
|
| 14 |
+
)
|
| 15 |
+
print(result)
|
| 16 |
|
| 17 |
# Заголовок приложения
|
| 18 |
st.title("Video Frame to Image Description")
|