From 8e4e09edfae134a744539b15d3e3954edc76609c Mon Sep 17 00:00:00 2001 From: HatBoy Date: Fri, 12 Apr 2024 21:38:45 +0800 Subject: [PATCH] Fix the bug that openxlab platform cannot be deployed. --- app.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 6a650f3..bebcaf3 100644 --- a/app.py +++ b/app.py @@ -1,3 +1,13 @@ import os -os.system('streamlit run web_internlm2.py --server.address=0.0.0.0 --server.port 7860') -#os.system('streamlit run web_demo-aiwei.py --server.address=0.0.0.0 --server.port 7860') + +#model = "EmoLLM_aiwei" +model = "EmoLLM_Model" + +if model == "EmoLLM_aiwei": + os.system("python download_model.py ajupyter/EmoLLM_aiwei") + os.system('streamlit run web_demo-aiwei.py --server.address=0.0.0.0 --server.port 7860') +elif model == "EmoLLM_Model": + os.system("python download_model.py jujimeizuo/EmoLLM_Model") + os.system('streamlit run web_internlm2.py --server.address=0.0.0.0 --server.port 7860') +else: + print("Please select one model") \ No newline at end of file