Spaces:
Running
Running
Commit
·
adfd2b0
1
Parent(s):
2b910cc
debug header
Browse files
src/hf_eda_mcp/server.py
CHANGED
|
@@ -224,6 +224,7 @@ def launch_server(
|
|
| 224 |
logger.info(f" - Share enabled: {config.share}")
|
| 225 |
logger.info(f" - Log level: {config.log_level}")
|
| 226 |
logger.info(f" - Cache directory: {config.cache_dir or 'Default system cache'}")
|
|
|
|
| 227 |
logger.info(f" - Max sample size: {config.max_sample_size:,}")
|
| 228 |
logger.info(f" - Request timeout: {config.request_timeout}s")
|
| 229 |
logger.info(f" - Max concurrent requests: {config.max_concurrent_requests}")
|
|
|
|
| 224 |
logger.info(f" - Share enabled: {config.share}")
|
| 225 |
logger.info(f" - Log level: {config.log_level}")
|
| 226 |
logger.info(f" - Cache directory: {config.cache_dir or 'Default system cache'}")
|
| 227 |
+
logger.info(f" - Authentication**: {"✅ Token configured" if config.hf_token else "⚠️ No token (public datasets only)"}")
|
| 228 |
logger.info(f" - Max sample size: {config.max_sample_size:,}")
|
| 229 |
logger.info(f" - Request timeout: {config.request_timeout}s")
|
| 230 |
logger.info(f" - Max concurrent requests: {config.max_concurrent_requests}")
|
src/hf_eda_mcp/services/dataset_viewer_adapter.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
|
| 2 |
-
import os
|
| 3 |
import logging
|
| 4 |
import requests
|
| 5 |
from requests.adapters import HTTPAdapter
|
|
|
|
| 1 |
|
|
|
|
| 2 |
import logging
|
| 3 |
import requests
|
| 4 |
from requests.adapters import HTTPAdapter
|
src/hf_eda_mcp/tools/metadata.py
CHANGED
|
@@ -66,6 +66,7 @@ def get_dataset_metadata(dataset_id: str, hf_api_token: gr.Header, config_name:
|
|
| 66 |
>>> metadata = get_dataset_metadata("glue", config_name="cola")
|
| 67 |
>>> print(f"Config: {metadata.get('config_name', 'default')}")
|
| 68 |
"""
|
|
|
|
| 69 |
# Handle empty strings from Gradio (convert to None)
|
| 70 |
if config_name == "":
|
| 71 |
config_name = None
|
|
|
|
| 66 |
>>> metadata = get_dataset_metadata("glue", config_name="cola")
|
| 67 |
>>> print(f"Config: {metadata.get('config_name', 'default')}")
|
| 68 |
"""
|
| 69 |
+
logger.info(f"Got Header from Gradio: {hf_api_token}")
|
| 70 |
# Handle empty strings from Gradio (convert to None)
|
| 71 |
if config_name == "":
|
| 72 |
config_name = None
|