Fix the bug that openxlab platform cannot be deployed.
This commit is contained in:
parent
a36a8f5bc4
commit
8e4e09edfa
12
app.py
12
app.py
@ -1,3 +1,13 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
|
#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')
|
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')
|
else:
|
||||||
|
print("Please select one model")
|
Loading…
Reference in New Issue
Block a user