from pathlib import Path import gradio as gr BASE_DIR = Path(__file__).resolve().parent # Expose both interface folders through Gradio's built-in static file route: # /gradio_api/file= gr.set_static_paths(paths=[str(BASE_DIR / "linear-regression"), str(BASE_DIR / "logistic-regression")]) with gr.Blocks(title="DDW Machine Learning") as demo: with gr.Row(): gr.HTML( """

Linear Regression

Week10 interactive pages:

Open Linear Regression Interface
""" ) gr.HTML( """

Logistic Regression

Week11 interactive pages:

Open Logistic Regression Interface
""" ) if __name__ == "__main__": demo.launch()