File size: 374 Bytes
64aed4e
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os

option = os.getenv("APP_OPTION", "gradio")

if option == "gradio":
    # Run Gradio app
    from app import create_gradio_interface
    iface = create_gradio_interface()
    iface.launch(server_name="0.0.0.0", server_port=7860)
elif option == "streamlit":
    # Run Streamlit app
    os.system("streamlit run app1.py --server.port 7860 --server.address 0.0.0.0")