Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,7 @@ def process_document(image,sendimg):
|
|
50 |
try:
|
51 |
response = requests.post(url, files={'photo': bio}, data=data)
|
52 |
except error:
|
53 |
-
|
54 |
-
|
55 |
# prepare encoder inputs
|
56 |
pixel_values = processor(image, return_tensors="pt").pixel_values
|
57 |
|
|
|
50 |
try:
|
51 |
response = requests.post(url, files={'photo': bio}, data=data)
|
52 |
except error:
|
53 |
+
print("telegram api error")
|
|
|
54 |
# prepare encoder inputs
|
55 |
pixel_values = processor(image, return_tensors="pt").pixel_values
|
56 |
|