Commit History

Refactor analyze_variability_json to streamline top 10 results extraction by consolidating DataFrame operations. Update UI button click handling to ensure consistent output across UI and MCP functionalities.
6e55dc4

Ken-INOUE commited on

Enhance JSON parsing in detect_trends_with_forecast_json to include metadata and structured results. Update analyze_variability_json to return only relevant columns for top variability entries, improving clarity and data presentation.
dca6b1b

Ken-INOUE commited on

Add .venv and .vscode to .gitignore; refactor global variables in app.py for improved clarity and consistency. Update load_from_supabase function to initialize INITIAL_CHOICES and enhance UI dropdown with relevant process names.
22b45a8

matsuap commited on

Refactor lag matrix index handling in forecast_process_with_lag function to improve process name matching. This change enhances the robustness of data retrieval by ensuring accurate indexing, while also removing unused initialization code for UI loading, streamlining the application logic.
7867a41

Ken-INOUE commited on

Refactor process name handling in app.py to normalize process names for consistency across data comparisons. This change enhances data integrity in trend detection and forecasting functions, ensuring accurate results when matching process names.
d5a1c93

Ken-INOUE commited on

Initialize process_selector with empty choices and implement loading from Supabase to update UI dynamically. This enhancement improves user experience by ensuring the dropdown is populated with relevant process names upon loading.
a97a545

Ken-INOUE commited on

Update process_selector in app.py to enhance UI functionality by allowing custom values and updating the label for clarity. This change improves user interaction and ensures a more flexible selection process.
2872be9

Ken-INOUE commited on

Merge branch 'main' of https://huggingface.co/spaces/AI-Agent-Exercise-2025/TrendAnalyticsTool1_2_3_4
2ada1c8

Ken-INOUE commited on

Update app.py to correct Supabase fixed file description in the main comment. This change clarifies the purpose of the application while maintaining existing functionality.
d9a6d6e

Ken-INOUE commited on

add prints
9b27bae

matsuap commited on

Remove manifest.json file as it is no longer needed for the application. This cleanup helps streamline the project structure and eliminates outdated configurations.
c2e3137

matsuap commited on

Fix print statements in diagnose_process_range_json function for correct syntax. Updated to use proper formatting for outputting variable values, enhancing readability in the console logs.
6594f6b

matsuap commited on

Enhance documentation for diagnose_process_range_json function in app.py. Expanded docstring to include detailed descriptions of parameters, return values, and internal processing notes, improving clarity and usability for future development.
a339e0b

matsuap commited on

Refactor app.py to remove unused process_input_free textbox and update input handling for MCP functions. Replaced references to process_input_free with process_selector in the run button click events, streamlining the UI and improving code clarity.
a8d000c

matsuap commited on

Refactor analyze_variability_json to return top 10 results by CV(%) in JSON format
ad07f87

Ken-INOUE commited on

Add analyze_variability_json function to app.py for JSON output of variability analysis
c5def16

Ken-INOUE commited on

Add JSON output functionality for trend detection and forecasting in app.py
d7c0f76

Ken-INOUE commited on

Merge branch 'main' of https://huggingface.co/spaces/AI-Agent-Exercise-2025/TrendAnalyticsTool1_2_3_4
e056425

Ken-INOUE commited on

Remove unnecessary blank lines in app.py to improve code readability and maintainability.
f29de11

Ken-INOUE commited on

Update app.py to include JSON output in the diagnose_process_range_json function. This change enhances the output handling by ensuring that the results are properly returned, improving the overall user experience in the application.
fa7d1d3

matsuap commited on

Enhance diagnose_process_range_json to improve JSON parsing and error handling. Added checks for valid JSON strings and implemented fallback logic for DataFrame conversion. Updated summary handling to provide clearer user feedback in case of missing results.
640f4ec

Ken-INOUE commited on

Refactor diagnose_process_range_json to prioritize JSON output from core processing. Added logic to return JSON directly if available, with a fallback to DataFrame conversion. This improves response handling and maintains consistency in data representation.
4dc0207

Ken-INOUE commited on

Add safe datetime parsing function to app.py
1eb804f

Ken-INOUE commited on

Enhance error handling in diagnose_process_range_json by ensuring the response always includes a results key. Updated the error response structure to include metadata and a summary, improving clarity and consistency in error reporting.
7825c57

Ken-INOUE commited on

Refactor diagnose_process_range_json to return a dictionary directly with enhanced error handling. Updated comments for clarity on JSON serialization by MCP, improving response structure and user feedback.
aedb502

Ken-INOUE commited on

Update MCP button functionality in app.py to remove unnecessary UI output, streamlining the interaction process. This change enhances the user experience by focusing on essential outputs.
6d29878

Ken-INOUE commited on

Refactor diagnose_process_range_json to return a dictionary directly, improving response structure and error handling. Updated docstring to clarify functionality and added error response formatting for better user feedback.
6bdce23

Ken-INOUE commited on

Update diagnose_process_range_json to return JSON strings instead of dictionaries, enhancing data consistency in responses. Modify error handling to ensure error messages are also returned as JSON strings, improving clarity in error reporting.
e6360eb

Ken-INOUE commited on

Refactor diagnose_process_range_json to return a raw dictionary instead of a JSON object, simplifying the response structure. Update error handling to return a dictionary directly, enhancing clarity and consistency in error reporting.
eb11b13

Ken-INOUE commited on

Enhance error handling in diagnose_process_range_json by wrapping the core logic in a try-except block. This change ensures that any exceptions are caught and returned as a structured JSON error response, improving robustness and user feedback in the Gradio application.
09d5d9c

Ken-INOUE commited on

Refactor diagnose_process_range_json in app.py to streamline the return of JSON responses. Removed the detailed docstring and simplified the function signature while ensuring the output is now a JSON object instead of a string, enhancing data handling and integration with Gradio components.
8bb7376

Ken-INOUE commited on

Enhance diagnose_process_range_json in app.py to return a structured JSON response containing process metadata and results. Introduced a helper function to convert DataFrames to records, improving data representation and clarity in the output.
b2b1416

Ken-INOUE commited on

Refactor app.py to separate UI and MCP process input handling. Introduce a new textbox for MCP input while enhancing the dropdown for UI selection. This change improves clarity and usability in the Gradio application.
6882c12

Ken-INOUE commited on

Enhance process_selector in app.py to allow custom values in the dropdown, improving user flexibility in selecting process names. This update ensures a more dynamic and user-friendly interface within the Gradio application.
152a9b9

Ken-INOUE commited on

Update requirements.txt to include MCP support for Gradio, enhancing compatibility with multi-channel processing features.
53de67c

Ken-INOUE commited on

Update gradio version in requirements.txt from 4.44.0 to 5.3.0 to leverage new features and improvements.
4e3d1e3

Ken-INOUE commited on

Enhance documentation and refactor function signatures in app.py for improved clarity. Update the diagnose_process_range_ui and diagnose_process_range_json functions to include detailed docstrings and better formatting, ensuring consistency and maintainability.
1739456

Ken-INOUE commited on

Update process_selector in app.py to dynamically prepare dropdown choices based on thresholds_df, enhancing user experience by ensuring relevant process names are displayed. This change improves the initialization of UI components within Gradio Blocks context.
7771cae

Ken-INOUE commited on

Refactor app.py to enhance Supabase client initialization and error handling. Introduce a new function for client creation, update file path handling to use a temporary directory, and improve documentation for clarity. Update .gitignore to include the tmp directory.
c336e61

Ken-INOUE commited on

Refactor app.py to improve UI component initialization by updating dropdown choices dynamically with gr.update, ensuring proper execution within Gradio Blocks context. Enhance clarity in function signatures and documentation for better maintainability.
01b3c6a

Ken-INOUE commited on

Enhance type hinting and documentation in app.py functions for improved clarity and maintainability. Update function signatures for convert_value, normalize, find_matching_column, load_from_supabase, judge_status, diagnose_process_range, detect_trends_with_forecast, forecast_process_with_lag, robust_mad, and analyze_variability to include return types and detailed docstrings.
81938ec

Ken-INOUE commited on

Refactor init_load function placement in app.py to ensure proper execution within Gradio Blocks context, enhancing UI component initialization on app load.
8c72c36

Ken-INOUE commited on

Fix demo.load call in app.py to ensure proper initialization of UI components on app load.
0a03caa

Ken-INOUE commited on

Update init_load function to use gr.update for dropdown choices instead of gr.Dropdown.update, improving UI component initialization on app load.
57ddb52

Ken-INOUE commited on

Refactor file loading logic to initialize UI components on app load. Update load status and process selector dropdown dynamically based on Supabase data.
ce0b02d

Ken-INOUE commited on

Fix comment formatting in load_from_supabase function for consistency.
ffb61ba

Ken-INOUE commited on

Update environment variable handling for file paths in Supabase integration. Change CSV, Excel, and lag file variables to use dynamic paths from .env, enhancing flexibility in file loading functions.
876d90d

Ken-INOUE commited on

Integrate Supabase for file loading in Gradio app, replacing local file input with cloud storage access. Update environment variable handling and enhance file loading functions for CSV, Excel, and lag files. Modify UI to reflect changes and ensure process name dropdown updates dynamically.
ba0f852

Ken-INOUE commited on

Add Supabase and python-dotenv dependencies to requirements.txt for enhanced integration and environment management.
1a876a9

Ken-INOUE commited on

Refactor Gradio UI to consolidate input fields for date and time parameters across all tabs, enhancing usability and reducing redundancy.
2e1ba0a

Ken-INOUE commited on