Matthias Kleiner
commited on
Commit
·
fb0908f
1
Parent(s):
6b2e219
testing return
Browse files
app.py
CHANGED
|
@@ -90,8 +90,13 @@ def func(file, number_of_pages, secret):
|
|
| 90 |
print(f"Client: {client}")
|
| 91 |
|
| 92 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
# output, parsed_document = client.predict(file, number_of_pages)
|
| 94 |
-
output, latex_output, latex_time, openai_time = client.predict(file, number_of_pages)
|
| 95 |
|
| 96 |
if "Error" in output:
|
| 97 |
return output
|
|
|
|
| 90 |
print(f"Client: {client}")
|
| 91 |
|
| 92 |
|
| 93 |
+
result = client.predict(file, number_of_pages)
|
| 94 |
+
print(f"Result: {result}")
|
| 95 |
+
output = result[0]
|
| 96 |
+
print(f"Output: {output}")
|
| 97 |
+
|
| 98 |
# output, parsed_document = client.predict(file, number_of_pages)
|
| 99 |
+
# output, latex_output, latex_time, openai_time = client.predict(file, number_of_pages)
|
| 100 |
|
| 101 |
if "Error" in output:
|
| 102 |
return output
|