Prajith04 commited on
Commit
94fe369
1 Parent(s): cf5317a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -260,10 +260,9 @@ def pass2llm(query: DiseaseDetail):
260
 
261
  @app.post("/trigger-reload")
262
  async def trigger_reload():
263
- # Update the timestamp of a dummy file to trigger reload
264
- with open("reload_trigger.txt", "w") as f:
265
- f.write(f"Trigger reload at {time.time()}")
266
- return {"message": "Reload triggered."}
267
 
268
  # To run the FastAPI app with Uvicorn
269
  # if __name__ == "__main__":
 
260
 
261
  @app.post("/trigger-reload")
262
  async def trigger_reload():
263
+ global all_selected_symptoms
264
+ all_selected_symptoms.clear()
265
+ return "cleared"
 
266
 
267
  # To run the FastAPI app with Uvicorn
268
  # if __name__ == "__main__":