asdfaman's picture
Create main.py
64aed4e verified
raw
history blame contribute delete
374 Bytes
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")