Patrick Rathje
commited on
Commit
·
5b0bb38
1
Parent(s):
6e814c7
Add hint about public nature of the public space
Browse files
app.py
CHANGED
|
@@ -68,6 +68,7 @@ with gr.Blocks() as demo:
|
|
| 68 |
This is a simple MCP server based on Gradio that allows you to read and write files to a local directory. Please note that this code is a proof of concept and not meant for production.
|
| 69 |
You can configure whether you want to allow editing the files by setting the environment variable `ALLOW_EDITING`. The files reside in `/app/files`. Using Docker, you can mount external directories as well.
|
| 70 |
The API is a simpler version of https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem .
|
|
|
|
| 71 |
""")
|
| 72 |
|
| 73 |
with gr.Tab("Read File"):
|
|
|
|
| 68 |
This is a simple MCP server based on Gradio that allows you to read and write files to a local directory. Please note that this code is a proof of concept and not meant for production.
|
| 69 |
You can configure whether you want to allow editing the files by setting the environment variable `ALLOW_EDITING`. The files reside in `/app/files`. Using Docker, you can mount external directories as well.
|
| 70 |
The API is a simpler version of https://github.com/modelcontextprotocol/servers/tree/main/src/filesystem .
|
| 71 |
+
Important: The files on the public Hugging Face Space are shared. This means that anyone can read and write to the files.
|
| 72 |
""")
|
| 73 |
|
| 74 |
with gr.Tab("Read File"):
|