Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ if uploaded_file is not None:
|
|
| 49 |
if status == 'completed':
|
| 50 |
results_response = requests.get(f'https://api.cloud.llamaindex.ai/api/v1/extraction/jobs/{job_id}/result', headers=headers)
|
| 51 |
results = results_response.json()
|
| 52 |
-
st.write('Extraction Results:')
|
| 53 |
-
st.json(results)
|
| 54 |
else:
|
| 55 |
st.write('Extraction job is still in progress or has failed.')
|
|
|
|
| 49 |
if status == 'completed':
|
| 50 |
results_response = requests.get(f'https://api.cloud.llamaindex.ai/api/v1/extraction/jobs/{job_id}/result', headers=headers)
|
| 51 |
results = results_response.json()
|
| 52 |
+
st.write('### Extraction Results:')
|
| 53 |
+
st.markdown(f'```json\n{json.dumps(results, indent=2)}\n```')
|
| 54 |
else:
|
| 55 |
st.write('Extraction job is still in progress or has failed.')
|