Spaces:
Runtime error
Runtime error
Rivalcoder
commited on
Commit
·
0589d55
1
Parent(s):
7d0e6b0
[Edit] Update of Image Data Handling
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import os
|
|
| 2 |
import warnings
|
| 3 |
import logging
|
| 4 |
import time
|
|
|
|
| 5 |
from datetime import datetime
|
| 6 |
|
| 7 |
# Set up cache directory for HuggingFace models
|
|
@@ -81,10 +82,12 @@ async def run_query(request: QueryRequest, token: str = Depends(verify_token)):
|
|
| 81 |
timing_data = {}
|
| 82 |
|
| 83 |
try:
|
| 84 |
-
print(
|
| 85 |
-
print(
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
| 88 |
|
| 89 |
print(f"Processing {len(request.questions)} questions...")
|
| 90 |
|
|
|
|
| 2 |
import warnings
|
| 3 |
import logging
|
| 4 |
import time
|
| 5 |
+
import json
|
| 6 |
from datetime import datetime
|
| 7 |
|
| 8 |
# Set up cache directory for HuggingFace models
|
|
|
|
| 82 |
timing_data = {}
|
| 83 |
|
| 84 |
try:
|
| 85 |
+
print("=== INPUT JSON ===")
|
| 86 |
+
print(json.dumps({
|
| 87 |
+
"documents": request.documents,
|
| 88 |
+
"questions": request.questions
|
| 89 |
+
}, indent=2))
|
| 90 |
+
print("==================\n")
|
| 91 |
|
| 92 |
print(f"Processing {len(request.questions)} questions...")
|
| 93 |
|