Spaces:
Running
Running
Update src/mcp_server/server.py
Browse files- src/mcp_server/server.py +2 -1
src/mcp_server/server.py
CHANGED
|
@@ -609,6 +609,8 @@ with gr.Blocks(title="MCePtion") as demo:
|
|
| 609 |
readme_content = readme_content[end_index + 3:].lstrip()
|
| 610 |
except Exception:
|
| 611 |
pass
|
|
|
|
|
|
|
| 612 |
|
| 613 |
with gr.Tab("EXAMPLES"):
|
| 614 |
# Lecture du fichier Examples.md
|
|
@@ -616,7 +618,6 @@ with gr.Blocks(title="MCePtion") as demo:
|
|
| 616 |
try:
|
| 617 |
with open("/assets/Examples.md", "r", encoding="utf-8") as f:
|
| 618 |
example_content = f.read()
|
| 619 |
-
|
| 620 |
except Exception as e:
|
| 621 |
example_content = f"Unable to load Examples.md: {str(e)}"
|
| 622 |
|
|
|
|
| 609 |
readme_content = readme_content[end_index + 3:].lstrip()
|
| 610 |
except Exception:
|
| 611 |
pass
|
| 612 |
+
except Exception as e:
|
| 613 |
+
example_content = f"Unable to load Readme.md: {str(e)}"
|
| 614 |
|
| 615 |
with gr.Tab("EXAMPLES"):
|
| 616 |
# Lecture du fichier Examples.md
|
|
|
|
| 618 |
try:
|
| 619 |
with open("/assets/Examples.md", "r", encoding="utf-8") as f:
|
| 620 |
example_content = f.read()
|
|
|
|
| 621 |
except Exception as e:
|
| 622 |
example_content = f"Unable to load Examples.md: {str(e)}"
|
| 623 |
|