Spaces:
Running
Running
abadesalex
commited on
Commit
•
655497e
1
Parent(s):
4a02f65
update clear variables
Browse files
Api/app/modules/clearVariables/routes/clearVariables_route.py
CHANGED
@@ -5,8 +5,9 @@ from fastapi.responses import JSONResponse
|
|
5 |
router = APIRouter()
|
6 |
|
7 |
|
8 |
-
@router.delete("/clear_variables
|
9 |
async def clear_variables():
|
10 |
query_response_storage.clear()
|
|
|
11 |
|
12 |
return JSONResponse(status_code=200, content={"message": "All variables cleared"})
|
|
|
5 |
router = APIRouter()
|
6 |
|
7 |
|
8 |
+
@router.delete("/clear_variables")
|
9 |
async def clear_variables():
|
10 |
query_response_storage.clear()
|
11 |
+
query_response_storage = []
|
12 |
|
13 |
return JSONResponse(status_code=200, content={"message": "All variables cleared"})
|
App/my-app/src/services/api/api.config.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
// const baseUrl = "http://localhost:8000/api";
|
2 |
const baseUrl = "https://abadesalex-docurag.hf.space/api";
|
3 |
-
// const baseUr2 = "https://abadesalex-docurag.hf.space/api";
|
4 |
|
5 |
export default baseUrl;
|
|
|
1 |
// const baseUrl = "http://localhost:8000/api";
|
2 |
const baseUrl = "https://abadesalex-docurag.hf.space/api";
|
|
|
3 |
|
4 |
export default baseUrl;
|