Skip to content

Commit

Permalink
拉长缓存文件删除时间 1h -> 5h
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterH0323 committed Jul 3, 2024
1 parent 9877093 commit 0d1f5b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def make_product_container(product_name, product_info, image_height, each_card_o
)


def delete_old_files(directory, limit_time_s=60 * 60 * 1):
def delete_old_files(directory, limit_time_s=60 * 60 * 5):
"""
删除指定目录下超过一定时间的文件。
Expand Down
3 changes: 2 additions & 1 deletion pages/selling_page.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

import streamlit as st

from utils.web_configs import WEB_CONFIGS

# 设置页面配置,包括标题、图标、布局和菜单项
st.set_page_config(
page_title="Streamer-Sales 销冠",
Expand All @@ -29,7 +31,6 @@
from utils.infer.lmdeploy_infer import get_turbomind_response
from utils.model_loader import ASR_HANDLER, LLM_MODEL, RAG_RETRIEVER
from utils.tools import resize_image
from utils.web_configs import WEB_CONFIGS


def on_btn_click(*args, **kwargs):
Expand Down

0 comments on commit 0d1f5b6

Please sign in to comment.