Spaces:
Running
Running
show progress on the button
Browse files
app.py
CHANGED
@@ -40,7 +40,6 @@ def create_interface():
|
|
40 |
|
41 |
create_btn = gr.Button("Create Private MCP Server", variant="primary")
|
42 |
create_status = gr.Markdown("")
|
43 |
-
progress_bar = gr.Markdown(visible=False)
|
44 |
|
45 |
def create_health_landing_zone(file_path: str, project_name: str, oauth_token: gr.OAuthToken | None, progress=gr.Progress()) -> str:
|
46 |
"""Create private dataset and MCP server space for Apple Health data."""
|
@@ -229,7 +228,7 @@ tqdm>=4.64.0
|
|
229 |
**Private Dataset:** [{dataset_repo_id}]({dataset_url})
|
230 |
- Your export.xml file has been securely uploaded.
|
231 |
- A SQLite database (health_data.db) will be generated from your data as soon as the MCP Server Space starts.
|
232 |
-
- Note: it might take several minutes (up to 1 hour or more)
|
233 |
|
234 |
**MCP Server Space:** [{space_repo_id}]({space_url})
|
235 |
- Query interface for your health data using SQLite
|
@@ -267,7 +266,8 @@ Both repositories are private and only accessible by you.
|
|
267 |
).then(
|
268 |
fn=create_health_landing_zone,
|
269 |
inputs=[file_input, space_name_input],
|
270 |
-
outputs=[create_status]
|
|
|
271 |
).then(
|
272 |
fn=lambda: gr.update(interactive=True),
|
273 |
outputs=[create_btn]
|
|
|
40 |
|
41 |
create_btn = gr.Button("Create Private MCP Server", variant="primary")
|
42 |
create_status = gr.Markdown("")
|
|
|
43 |
|
44 |
def create_health_landing_zone(file_path: str, project_name: str, oauth_token: gr.OAuthToken | None, progress=gr.Progress()) -> str:
|
45 |
"""Create private dataset and MCP server space for Apple Health data."""
|
|
|
228 |
**Private Dataset:** [{dataset_repo_id}]({dataset_url})
|
229 |
- Your export.xml file has been securely uploaded.
|
230 |
- A SQLite database (health_data.db) will be generated from your data as soon as the MCP Server Space starts.
|
231 |
+
- Note: it might take several minutes (up to 1 hour or more) to parse your health data depending on the size of your export.xml file.
|
232 |
|
233 |
**MCP Server Space:** [{space_repo_id}]({space_url})
|
234 |
- Query interface for your health data using SQLite
|
|
|
266 |
).then(
|
267 |
fn=create_health_landing_zone,
|
268 |
inputs=[file_input, space_name_input],
|
269 |
+
outputs=[create_status],
|
270 |
+
show_progress="full"
|
271 |
).then(
|
272 |
fn=lambda: gr.update(interactive=True),
|
273 |
outputs=[create_btn]
|