Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -166,12 +166,9 @@ class WODAnalyzer:
|
|
| 166 |
|
| 167 |
# Get file path
|
| 168 |
file_path = cls.get_file_path(file_obj)
|
| 169 |
-
|
| 170 |
-
# Process the document using the API (currently mocked)
|
| 171 |
-
#
|
| 172 |
|
| 173 |
if PRODUCTION:
|
| 174 |
-
|
| 175 |
else:
|
| 176 |
time.sleep(1) # Simulate processing time
|
| 177 |
api_response = json.loads(output_test)
|
|
|
|
| 166 |
|
| 167 |
# Get file path
|
| 168 |
file_path = cls.get_file_path(file_obj)
|
|
|
|
|
|
|
|
|
|
| 169 |
|
| 170 |
if PRODUCTION:
|
| 171 |
+
api_response = process_wod_document(file_path, wod_type)
|
| 172 |
else:
|
| 173 |
time.sleep(1) # Simulate processing time
|
| 174 |
api_response = json.loads(output_test)
|