Upload app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@
|
|
| 2 |
BioMed text normalization MCP server.
|
| 3 |
"""
|
| 4 |
|
| 5 |
-
# import time
|
| 6 |
import asyncio
|
| 7 |
from typing import Optional
|
| 8 |
|
|
@@ -171,6 +170,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 171 |
None,
|
| 172 |
status,
|
| 173 |
queue=False,
|
|
|
|
| 174 |
).then(
|
| 175 |
extract_and_normalize, # Async processing
|
| 176 |
[paragraph, target_entity],
|
|
@@ -179,6 +179,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
| 179 |
lambda: "", # Clear status
|
| 180 |
None,
|
| 181 |
status,
|
|
|
|
| 182 |
)
|
| 183 |
|
| 184 |
|
|
|
|
| 2 |
BioMed text normalization MCP server.
|
| 3 |
"""
|
| 4 |
|
|
|
|
| 5 |
import asyncio
|
| 6 |
from typing import Optional
|
| 7 |
|
|
|
|
| 170 |
None,
|
| 171 |
status,
|
| 172 |
queue=False,
|
| 173 |
+
api_name=False, # Hide this endpoint
|
| 174 |
).then(
|
| 175 |
extract_and_normalize, # Async processing
|
| 176 |
[paragraph, target_entity],
|
|
|
|
| 179 |
lambda: "", # Clear status
|
| 180 |
None,
|
| 181 |
status,
|
| 182 |
+
api_name=False, # Hide this endpoint
|
| 183 |
)
|
| 184 |
|
| 185 |
|