Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -443,7 +443,7 @@ async def submit_data(request: SubmitDataRequest):
|
|
443 |
}
|
444 |
|
445 |
# Redirect to the visualization page
|
446 |
-
return RedirectResponse(url=f"
|
447 |
|
448 |
# Prepare box data for visualization
|
449 |
box_data = []
|
@@ -480,7 +480,7 @@ async def submit_data(request: SubmitDataRequest):
|
|
480 |
print(" auto suggest data ", processed_data_store[session_id])
|
481 |
|
482 |
# Redirect to the visualization page
|
483 |
-
return RedirectResponse(url=f"
|
484 |
|
485 |
@app.get("/get_visualization/{session_id}/")
|
486 |
async def get_visualization(session_id: str):
|
@@ -670,4 +670,4 @@ async def visualize_payload(payload: Dict[str, Any]):
|
|
670 |
}
|
671 |
|
672 |
# Return session ID and processed data to the frontend for visualization
|
673 |
-
return {"session_id": session_id, "visualization_url": f"
|
|
|
443 |
}
|
444 |
|
445 |
# Redirect to the visualization page
|
446 |
+
return RedirectResponse(url=f"https://66efefa222edb77e90ad7cf5--radiant-elf-edf447.netlify.app?session_id={session_id}", status_code=302)
|
447 |
|
448 |
# Prepare box data for visualization
|
449 |
box_data = []
|
|
|
480 |
print(" auto suggest data ", processed_data_store[session_id])
|
481 |
|
482 |
# Redirect to the visualization page
|
483 |
+
return RedirectResponse(url=f"https://66efefa222edb77e90ad7cf5--radiant-elf-edf447.netlify.app?session_id={session_id}", status_code=302)
|
484 |
|
485 |
@app.get("/get_visualization/{session_id}/")
|
486 |
async def get_visualization(session_id: str):
|
|
|
670 |
}
|
671 |
|
672 |
# Return session ID and processed data to the frontend for visualization
|
673 |
+
return {"session_id": session_id, "visualization_url": f"https://66efefa222edb77e90ad7cf5--radiant-elf-edf447.netlify.app?session_id={session_id}"}
|