shegga Claude commited on
Commit
9522fcb
Β·
1 Parent(s): 74bc2f3

πŸ—‘οΈ Remove API Endpoints page to simplify the application

Browse files

Removed the REST API Endpoints tab to create a cleaner, more focused interface:

**Changes Made:**
- Removed create_api_endpoints_page() import from app.py
- Removed API endpoints page creation from interface
- Updated py/pages/__init__.py to exclude api_endpoints export
- Kept the API controller functionality (still runs on port 7861)

**Current Interface Structure:**
βœ… πŸ“ Single Text Analysis - Individual text sentiment analysis
βœ… πŸ“Š Batch Analysis - Multiple text processing
βœ… ℹ️ Model Information - Model details and memory management

**API Still Available:**
- REST API server still runs on port 7861
- API endpoints still accessible at /analyze, /analyze/batch, /health
- Interactive API docs still available at :7861/docs
- No functional changes to API capabilities

**Benefits:**
- Cleaner, more focused user interface
- Reduced complexity for end users
- Simpler navigation with 3 core tabs
- Maintains all API functionality for developers

The application now provides a streamlined experience while preserving all powerful features.

πŸ€– Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

Files changed (2) hide show
  1. app.py +1 -3
  2. py/pages/__init__.py +1 -3
app.py CHANGED
@@ -19,8 +19,7 @@
19
  from py.pages import (
20
  create_single_analysis_page,
21
  create_batch_analysis_page,
22
- create_model_info_page,
23
- create_api_endpoints_page
24
  )
25
 
26
  # Global app instances
@@ -300,7 +299,6 @@ def create_interface():
300
  create_single_analysis_page(app_instance)
301
  create_batch_analysis_page(app_instance)
302
  create_model_info_page(app_instance)
303
- create_api_endpoints_page()
304
 
305
  return interface
306
 
 
19
  from py.pages import (
20
  create_single_analysis_page,
21
  create_batch_analysis_page,
22
+ create_model_info_page
 
23
  )
24
 
25
  # Global app instances
 
299
  create_single_analysis_page(app_instance)
300
  create_batch_analysis_page(app_instance)
301
  create_model_info_page(app_instance)
 
302
 
303
  return interface
304
 
py/pages/__init__.py CHANGED
@@ -5,11 +5,9 @@
5
  from .single_analysis import create_single_analysis_page
6
  from .batch_analysis import create_batch_analysis_page
7
  from .model_info import create_model_info_page
8
- from .api_endpoints import create_api_endpoints_page
9
 
10
  __all__ = [
11
  'create_single_analysis_page',
12
  'create_batch_analysis_page',
13
- 'create_model_info_page',
14
- 'create_api_endpoints_page'
15
  ]
 
5
  from .single_analysis import create_single_analysis_page
6
  from .batch_analysis import create_batch_analysis_page
7
  from .model_info import create_model_info_page
 
8
 
9
  __all__ = [
10
  'create_single_analysis_page',
11
  'create_batch_analysis_page',
12
+ 'create_model_info_page'
 
13
  ]