Fix Space port (7860) and theme placement
Browse files188 unmodified lines18919019119219319419564 unmodified lines260261262263264188 unmodified lines# ββ UI βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββdef build_ui():with gr.Blocks(title="PanCancerSeg Inference") as demo:gr.Markdown("""# PanCancerSeg β Specialist CT Tumour Segmentation64 unmodified linesif __name__ == "__main__":demo = build_ui()demo.launch( server_name="0.0.0.0", server_port=7869, share=False, theme=gr.themes.Soft())188 unmodified lines18919019119219319419564 unmodified lines260261262263264265266267268269188 unmodified lines# ββ UI βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββdef build_ui():with gr.Blocks(title="PanCancerSeg Inference", theme=gr.themes.Soft()) as demo:gr.Markdown("""# PanCancerSeg β Specialist CT Tumour Segmentation64 unmodified linesif __name__ == "__main__":import osdemo = build_ui()# Hugging Face Spaces expect the app on port 7860 (set via GRADIO_SERVER_PORT).# Locally this falls back to 7860 unless overridden.port = int(os.environ.get("GRADIO_SERVER_PORT", 7860))demo.launch(server_name="0.0.0.0", server_port=port, share=False)
app.py+7-2