Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -445,7 +445,7 @@ async def submit_data(request: SubmitDataRequest):
|
|
445 |
}
|
446 |
|
447 |
# Redirect to the visualization page
|
448 |
-
return RedirectResponse(url=f"https://
|
449 |
|
450 |
# Prepare box data for visualization
|
451 |
box_data = []
|
@@ -482,7 +482,7 @@ async def submit_data(request: SubmitDataRequest):
|
|
482 |
print(" auto suggest data ", processed_data_store[session_id])
|
483 |
|
484 |
# Redirect to the visualization page
|
485 |
-
return RedirectResponse(url=f"https://
|
486 |
|
487 |
@app.get("/get_visualization/{session_id}/")
|
488 |
async def get_visualization(session_id: str):
|
@@ -673,4 +673,4 @@ async def visualize_payload(payload: Dict[str, Any]):
|
|
673 |
}
|
674 |
|
675 |
# Return session ID and processed data to the frontend for visualization
|
676 |
-
return {"session_id": session_id, "visualization_url": f"https://
|
|
|
445 |
}
|
446 |
|
447 |
# Redirect to the visualization page
|
448 |
+
return RedirectResponse(url=f"https://remarkable-frangollo-aed932.netlify.app?session_id={session_id}", status_code=302)
|
449 |
|
450 |
# Prepare box data for visualization
|
451 |
box_data = []
|
|
|
482 |
print(" auto suggest data ", processed_data_store[session_id])
|
483 |
|
484 |
# Redirect to the visualization page
|
485 |
+
return RedirectResponse(url=f"https://remarkable-frangollo-aed932.netlify.app?session_id={session_id}", status_code=302)
|
486 |
|
487 |
@app.get("/get_visualization/{session_id}/")
|
488 |
async def get_visualization(session_id: str):
|
|
|
673 |
}
|
674 |
|
675 |
# Return session ID and processed data to the frontend for visualization
|
676 |
+
return {"session_id": session_id, "visualization_url": f"https://remarkable-frangollo-aed932.netlify.app?session_id={session_id}"}
|