diff --git a/README.md b/README.md index a6c25157..ee87c5af 100644 --- a/README.md +++ b/README.md @@ -20,10 +20,11 @@ TaskWeaver is A **code-first** agent framework for seamlessly planning and execu ## πŸ†• News -- πŸ“…2024-01-01: Happy New Year πŸŽ† with TaskWeaver [Discord](https://discord.gg/Z56MXmZgMb). +- πŸ“…2024-01-15: TaskWeaver now supports Streamingβ™’ in both UI and command line.✌️ +- πŸ“…2024-01-01: Welcome join TaskWeaver [Discord](https://discord.gg/Z56MXmZgMb). - πŸ“…2023-12-21: TaskWeaver now supports a number of LLMs, such as LiteLLM, Ollama, Gemini, and QWen🎈. - πŸ“…2023-12-21: TaskWeaver Website is now [available](https://microsoft.github.io/TaskWeaver/) with more documentations. -- πŸ“…2023-12-12: A simple UI demo is available in playground/UI folder, try it [here](https://microsoft.github.io/TaskWeaver/docs/usage/webui)! + diff --git a/playground/UI/app.py b/playground/UI/app.py index 16bd96f8..95d8fc65 100644 --- a/playground/UI/app.py +++ b/playground/UI/app.py @@ -6,6 +6,9 @@ import requests +# change current directory to the directory of this file for loading resources +os.chdir(os.path.dirname(__file__)) + try: import chainlit as cl @@ -397,6 +400,4 @@ async def main(message: cl.Message): if __name__ == "__main__": from chainlit.cli import run_chainlit - # change current directory to the directory of this file for loading resources - os.path.curdir = os.path.dirname(__file__) run_chainlit(__file__)