mod page title and icon

This commit is contained in:
2025-06-05 09:56:21 +08:00
parent f160ba76b5
commit d826044a72
3 changed files with 7 additions and 2 deletions

View File

@ -46,8 +46,11 @@ class TranslatorApp:
def run(self) -> None:
""" Run the Streamlit app """
st.title(body='跨過語言的黑水溝')
st.set_page_config(
page_title=self._config['app']['page_title'],
page_icon=self._config['app']['page_favicon_path'],
)
st.title(body=self._config['app']['page_title'])
direction = st.radio(
label='Direction',
options=list(self._lang_directions.keys()),

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,4 +1,6 @@
app:
page_title: 跨過語言的黑水溝
page_favicon_path: ./assets/favicon.png
ollama_url: http://localhost:11434
ollama_model_name: gemma3:12b-it-qat
ollama_max_tokens: 256