(feat) proxy - remove streamlit ui on startup

This commit is contained in:
ishaan-jaff 2024-01-01 12:54:23 +05:30
parent 20236c1c69
commit 52db2a6040
2 changed files with 1 additions and 5 deletions

View file

@ -374,7 +374,7 @@ async def run_streamlit_ui():
while True:
await asyncio.sleep(3600)
except Exception as e:
print(f"An error occurred: {e}")
print_verbose(f"Admin UI - Streamlit. An error occurred: {e}")
def cost_tracking():
@ -1013,9 +1013,6 @@ async def startup_event():
duration=None, models=[], aliases={}, config={}, spend=0, token=master_key
)
# Run streamlit_ui as a background task
asyncio.create_task(run_streamlit_ui())
#### API ENDPOINTS ####
@router.get(