Spaces:
Runtime error
Runtime error
Tirath5504
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -31,12 +31,12 @@ def predict(image):
|
|
31 |
ocr_text = extract_text(image).lower()
|
32 |
|
33 |
engResult = clientEngText.predict(
|
34 |
-
text=ocr_text,
|
35 |
api_name="/predict"
|
36 |
)
|
37 |
|
38 |
hingResult = clientHingText.predict(
|
39 |
-
text=ocr_text,
|
40 |
api_name="/predict"
|
41 |
)
|
42 |
|
|
|
31 |
ocr_text = extract_text(image).lower()
|
32 |
|
33 |
engResult = clientEngText.predict(
|
34 |
+
text=ocr_text[:200],
|
35 |
api_name="/predict"
|
36 |
)
|
37 |
|
38 |
hingResult = clientHingText.predict(
|
39 |
+
text=ocr_text[:200],
|
40 |
api_name="/predict"
|
41 |
)
|
42 |
|