Commit
Β·
2af708a
1
Parent(s):
a8063f2
fix: Gradio 6 compatibility and safe imports
Browse files
app.py
CHANGED
|
@@ -437,7 +437,7 @@ def run_full_pipeline(
|
|
| 437 |
|
| 438 |
|
| 439 |
def build_interface() -> gr.Blocks:
|
| 440 |
-
with gr.Blocks(title="Deploy Ready Copilot"
|
| 441 |
gr.Markdown("### π Deployment Readiness Copilot")
|
| 442 |
gr.Markdown(
|
| 443 |
"**Upload your codebase or connect GitHub repo β Analyze β Select platform β Deploy**\n\n"
|
|
@@ -674,5 +674,6 @@ def build_interface() -> gr.Blocks:
|
|
| 674 |
return demo
|
| 675 |
|
| 676 |
|
| 677 |
-
|
| 678 |
-
demo
|
|
|
|
|
|
| 437 |
|
| 438 |
|
| 439 |
def build_interface() -> gr.Blocks:
|
| 440 |
+
with gr.Blocks(title="Deploy Ready Copilot") as demo:
|
| 441 |
gr.Markdown("### π Deployment Readiness Copilot")
|
| 442 |
gr.Markdown(
|
| 443 |
"**Upload your codebase or connect GitHub repo β Analyze β Select platform β Deploy**\n\n"
|
|
|
|
| 674 |
return demo
|
| 675 |
|
| 676 |
|
| 677 |
+
if __name__ == "__main__":
|
| 678 |
+
demo = build_interface()
|
| 679 |
+
demo.launch(mcp_server=True)
|