OliveSensorAPI/app.py
HongCheng bb3baadb79 update port num
2024-04-22 13:19:55.349 Port 7860 is already in use
2024-04-22 14:40:55 +09:00

18 lines
812 B
Python

import os
#model = "EmoLLM_aiwei"
# model = "EmoLLM_Model"
model = "Llama3_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')
elif model == "Llama3_Model":
os.system("python download_model.py chg0901/EmoLLM-Llama3-8B-Instruct2.0")
# os.system('streamlit run web_demo-Llama3_online.py --server.address=0.0.0.0 --server.port 7860')
os.system('streamlit run web_demo-Llama3_online.py --server.address=0.0.0.0 --server.port 7968')
else:
print("Please select one model")