diff --git a/docs/site/demo.html b/docs/site/demo.html deleted file mode 100644 index a73d72aa0..000000000 --- a/docs/site/demo.html +++ /dev/null @@ -1,881 +0,0 @@ - - - - - - Live Emotion Detection Demo - SAMO Deep Learning - - - - - - - - - - - - - - - - - - -
-
-
-
-

- Live Emotion Detection Demo -

-

- Experience SAMO-DL's emotion detection API in real-time. Test with your own text and see instant results. -

- -
-
-
-
-
-

>90%

- F1 Score -
-
-
-
-

<50ms

- Latency -
-
-
-
-

28

- Emotions -
-
-
-
-

2.3x

- Faster -
-
-
-
-
-
-
- - -
-
-
-
-
-

Interactive Emotion Detection

-

- Enter any text below and watch our AI analyze emotions in real-time -

-
-
- - -
-
-
- - -
- -
- - -
-
-
- - -
-
- Loading... -
-

Analyzing emotions...

-
- - -
-
-
-

Analysis Results

- - -
-
-
Detected Emotions:
-
-
-
- - -
-
-
-
-
Emotion Confidence Distribution
-
- -
-
-
-
-
- - -
-
-
-
-
-
- Response Time - - -
-
- API Status - - -
-
- Avg Confidence - - -
-
- Model Version - v2.1.0 -
-
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-
-
-
- -
-
Lightning Fast
-

- Sub-50ms response times with ONNX optimization. -

-
-
-
-
-
-
-
- -
-
High Accuracy
-

- >90% F1 score across 28 emotion categories. -

-
-
-
-
-
-
-
- -
-
Production Ready
-

- Deployed on Google Cloud Run with 99.9% uptime. -

-
-
-
-
-
-
- - - - - - - - - - diff --git a/docs/site/index.html b/docs/site/index.html deleted file mode 100644 index 38103159e..000000000 --- a/docs/site/index.html +++ /dev/null @@ -1,731 +0,0 @@ - - - - - - SAMO Deep Learning - Production Emotion Detection API - - - - - - - - - - - - - - - -
-
-
-
-

- Production Emotion Detection API -

-

- Enterprise-grade emotion detection with >90% F1 score and 2.3x performance optimization. - Ready for production integration with your applications. -

- -
-
-
-
-
-

>90%

-

F1 Score

-
-
-
-
-

2.3x

-

Faster

-
-
-
-
-

<50ms

-

Latency

-
-
-
-
-

99.9%

-

Uptime

-
-
-
-
-
-
-
- - -
-
-
-
-

Why Choose SAMO-DL?

-

- Production-ready emotion detection with enterprise-grade reliability and performance -

-
-
-
-
-
-
-
- -
-
Production Ready
-

- Deployed on Google Cloud Run with 99.9% uptime, auto-scaling, and comprehensive monitoring. -

-
-
-
-
-
-
-
- -
-
High Performance
-

- >90% F1 score with 2.3x speedup using ONNX optimization and efficient tokenization. -

-
-
-
-
-
-
-
- -
-
Enterprise Security
-

- Rate limiting, input sanitization, CORS protection, and API key authentication. -

-
-
-
-
-
-
-
- -
-
Easy Integration
-

- Simple REST API with comprehensive documentation and examples for all frameworks. -

-
-
-
-
-
-
-
- -
-
Real-time Monitoring
-

- Prometheus metrics, health checks, and comprehensive logging for observability. -

-
-
-
-
-
-
-
- -
-
Team Ready
-

- Integration guides for backend, frontend, UX, and data science teams. -

-
-
-
-
-
-
- - -
-
-
-
-

Try It Live

-

- Test our emotion detection API with your own text and see real-time predictions -

-
-
-
-
-
-
-
- - -
-
- -
- - -
-
-
-
-
-
- - -
-
-
-
-

Team Integration

-

- Ready-to-use integration examples for all development teams -

-
-
-
-
-
-
- - Backend Integration -
-
-
import requests
-
-def detect_emotion(text: str) -> dict:
-    response = requests.post(
-        "https://samo-emotion-api-xxxxx-ew.a.run.app/predict",
-        json={"text": text},
-        headers={"Content-Type": "application/json"}
-    )
-    return response.json()
-
-# Example usage
-emotions = detect_emotion("I'm excited!")
-# Returns: [{"emotion": "excitement", "confidence": 0.92}]
-
-
-
-
-
-
- - Frontend Integration -
-
-
async function analyzeEmotion(text) {
-  const response = await fetch(
-    'https://samo-emotion-api-xxxxx-ew.a.run.app/predict',
-    {
-      method: 'POST',
-      headers: { 'Content-Type': 'application/json' },
-      body: JSON.stringify({ text })
-    }
-  );
-  return await response.json();
-}
-
-// Example usage
-const emotions = await analyzeEmotion("This is amazing!");
-console.log(emotions); // [{emotion: "joy", confidence: 0.89}]
-
-
-
-
-
-
- - Data Science Integration -
-
-
import pandas as pd
-import requests
-
-def analyze_dataset(texts: list) -> pd.DataFrame:
-    results = []
-    for text in texts:
-        emotions = requests.post(
-            "https://samo-emotion-api-xxxxx-ew.a.run.app/predict",
-            json={"text": text}
-        ).json()
-        results.append({
-            'text': text,
-            'emotions': emotions
-        })
-    return pd.DataFrame(results)
-
-
-
-
-
-
- - Mobile Integration -
-
-
// React Native / Flutter
-const analyzeUserFeedback = async (feedback) => {
-  try {
-    const response = await fetch(
-      'https://samo-emotion-api-xxxxx-ew.a.run.app/predict',
-      {
-        method: 'POST',
-        headers: { 'Content-Type': 'application/json' },
-        body: JSON.stringify({ text: feedback })
-      }
-    );
-    const emotions = await response.json();
-    return emotions;
-  } catch (error) {
-    console.error('Error:', error);
-  }
-};
-
-
-
-
-
-
- - -
-
-
-
-

Documentation & Resources

-

- Complete guides and resources for successful integration -

-
-
-
-
-
-
- -
API Documentation
-

Complete API reference with examples

- View Docs -
-
-
-
-
-
- -
Deployment Guide
-

Step-by-step deployment instructions

- Deploy Now -
-
-
-
-
-
- -
Team Guides
-

Integration guides for all teams

- Learn More -
-
-
-
-
-
- -
Source Code
-

Open source project on GitHub

- View Code -
-
-
-
-
-
- - - - - - - - - - - diff --git a/docs/site/integration.html b/docs/site/integration.html deleted file mode 100644 index fc4a9825d..000000000 --- a/docs/site/integration.html +++ /dev/null @@ -1,1274 +0,0 @@ - - - - - - Team Integration Guide - SAMO Deep Learning - - - - - - - - - - - - - - - - - - -
-
-
-
-

Team Integration Guide

-

- Complete integration guides for backend, frontend, UX, and data science teams. - Get your team up and running with SAMO-DL in minutes. -

-
-
-
-
- - -
-
-
-
-

API Overview

-
-
Base URL
- https://samo-emotion-api-xxxxx-ew.a.run.app -
- -

Available Endpoints

- -
-
Health Check
- GET /health -

Check API status and model health

-
- -
-
Emotion Detection
- POST /predict -

Analyze text and return detected emotions

-
- -
-
Metrics
- GET /metrics -

Prometheus metrics for monitoring

-
-
-
-
-
- - -
-
-
-
-

- - Backend Integration Guide -

- -
-
-
-
-
Python (Flask/Django)
-

Integrate with Python web frameworks

-
    -
  • Flask integration
  • -
  • Django integration
  • -
  • FastAPI support
  • -
-
-
-
-
-
-
-
Node.js (Express)
-

Integrate with Node.js applications

-
    -
  • Express.js middleware
  • -
  • Error handling
  • -
  • Rate limiting
  • -
-
-
-
-
- -

Quick Start

- -
-
1
-
-
Install Dependencies
-
-
pip install requests
-# or
-npm install axios
-
-
-
- -
-
2
-
-
Create Integration Function
-
-
import requests
-
-def detect_emotion(text: str) -> dict:
-    """Integrate with SAMO Emotion API"""
-    try:
-        response = requests.post(
-            "https://samo-emotion-api-minimal-71517823771.us-central1.run.app/predict",
-            json={"text": text},
-            headers={"Content-Type": "application/json"},
-            timeout=10
-        )
-        response.raise_for_status()
-        return response.json()
-    except requests.exceptions.RequestException as e:
-        print(f"API Error: {e}")
-        return {"error": "Failed to analyze emotions"}
-
-# Example usage
-emotions = detect_emotion("I'm feeling excited about this project!")
-print(emotions)  # [{"emotion": "excitement", "confidence": 0.92}]
-
-
-
- -
-
3
-
-
Add Error Handling
-
-
def safe_emotion_detection(text: str) -> dict:
-    """Safe emotion detection with comprehensive error handling"""
-    if not text or len(text.strip()) == 0:
-        return {"error": "Empty text provided"}
-
-    if len(text) > 1000:
-        return {"error": "Text too long (max 1000 characters)"}
-
-    try:
-        emotions = detect_emotion(text)
-        if "error" in emotions:
-            return emotions
-
-        # Validate response format
-        if not isinstance(emotions, list):
-            return {"error": "Invalid response format"}
-
-        return {"success": True, "emotions": emotions}
-    except Exception as e:
-        return {"error": f"Unexpected error: {str(e)}"}
-
-
-
-
-
-
-
- - -
-
-
-
-

- - Frontend Integration Guide -

- -
-
-
-
-
React
-

React hooks and components

-
    -
  • Custom hooks
  • -
  • Error boundaries
  • -
  • Loading states
  • -
-
-
-
-
-
-
-
Vue.js
-

Vue composables and components

-
    -
  • Composables
  • -
  • Reactive data
  • -
  • Error handling
  • -
-
-
-
-
-
-
-
Angular
-

Angular services and components

-
    -
  • Injectable services
  • -
  • Observables
  • -
  • Error handling
  • -
-
-
-
-
- -

React Integration Example

- -
-
import React, { useState } from 'react';
-
-// Custom hook for emotion detection
-const useEmotionDetection = () => {
-  const [loading, setLoading] = useState(false);
-  const [error, setError] = useState(null);
-  const [emotions, setEmotions] = useState([]);
-
-  const analyzeEmotion = async (text) => {
-    setLoading(true);
-    setError(null);
-
-    try {
-      const response = await fetch(
-        'https://samo-emotion-api-minimal-71517823771.us-central1.run.app/predict',
-        {
-          method: 'POST',
-          headers: { 'Content-Type': 'application/json' },
-          body: JSON.stringify({ text })
-        }
-      );
-
-      if (!response.ok) {
-        throw new Error(`HTTP error! status: ${response.status}`);
-      }
-
-      const data = await response.json();
-      setEmotions(data);
-    } catch (err) {
-      setError(err.message);
-    } finally {
-      setLoading(false);
-    }
-  };
-
-  return { analyzeEmotion, emotions, loading, error };
-};
-
-// React component
-const EmotionAnalyzer = () => {
-  const [text, setText] = useState('');
-  const { analyzeEmotion, emotions, loading, error } = useEmotionDetection();
-
-  const handleSubmit = (e) => {
-    e.preventDefault();
-    if (text.trim()) {
-      analyzeEmotion(text);
-    }
-  };
-
-  return (
-    
-
- -
- -
- - -
-
-
- - -
-
- Loading... -
-
Analyzing emotions...
-

Processing your text with our advanced AI model

-
- - -
-
-
-

Analysis Results

- - -
-
-
Detected Emotions:
-
-
-
- - -
-
-
-
-
Confidence Distribution
- -
-
-
-
-
-
-
Emotion Categories
- -
-
-
-
-
-
-
- - -
-
-
-
-
API Information
-
-
-
- -

Response Time

- - -
-
-
-
- -

Status

- Ready -
-
-
-
- -

Confidence

- - -
-
-
-
- -

Model

- ONNX Optimized -
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-

Why Choose SAMO-DL?

-

- Enterprise-grade emotion detection with cutting-edge performance -

-
-
-
-
-
-
-
- -
-
Lightning Fast
-

- Sub-50ms response times with ONNX optimization for real-time applications. -

-
-
-
-
-
-
-
- -
-
High Accuracy
-

- >90% F1 score with comprehensive emotion detection across 28 categories. -

-
-
-
-
-
-
-
- -
-
Production Ready
-

- Deployed on Google Cloud Run with 99.9% uptime and enterprise security. -

-
-
-
-
-
-
- - - - - - - - - - - \ No newline at end of file diff --git a/website/index.html b/website/index.html index af02fd77b..6d607ead0 100644 --- a/website/index.html +++ b/website/index.html @@ -5,359 +5,13 @@ SAMO Deep Learning - Production Emotion Detection API - + - + @@ -376,19 +30,13 @@ Features - - @@ -404,12 +52,12 @@

šŸš€ Complete AI Integration Platform

- 100% Priority 1 Features Complete! Enterprise-grade AI platform with JWT authentication, - voice transcription, text summarization, real-time processing, and comprehensive monitoring. + 100% Priority 1 Features Complete! Enterprise-grade AI platform with JWT authentication, + voice transcription, text summarization, real-time processing, and comprehensive monitoring. Production-ready with >90% F1 score and 2.3x performance optimization.

- + Emotion Demo @@ -475,7 +123,7 @@

šŸŽÆ Priority 1 Features - 100% Complete

JWT Authentication System

- Complete token lifecycle management with register, login, refresh, logout, and profile endpoints. + Complete token lifecycle management with register, login, refresh, logout, and profile endpoints. Secure with blacklist tracking and permission-based access control.

āœ… Complete
@@ -490,7 +138,7 @@
JWT Authentication System
Enhanced Voice Transcription

- Advanced Whisper integration with batch processing, real-time streaming, and comprehensive + Advanced Whisper integration with batch processing, real-time streaming, and comprehensive error handling. Supports multiple audio formats with file validation.

āœ… Complete
@@ -505,7 +153,7 @@
Enhanced Voice Transcription
Text Summarization & Analysis

- Multi-model T5 summarization with emotional analysis, key point extraction, and + Multi-model T5 summarization with emotional analysis, key point extraction, and customizable compression ratios. Real-time processing with confidence scoring.

āœ… Complete
@@ -520,7 +168,7 @@
Text Summarization & Analysis
Real-time Batch Processing

- WebSocket-based real-time processing with progress tracking, partial results, and + WebSocket-based real-time processing with progress tracking, partial results, and comprehensive error handling. Supports concurrent processing with rate limiting.

āœ… Complete
@@ -535,7 +183,7 @@
Real-time Batch Processing
Comprehensive Monitoring

- Real-time dashboard with system metrics, model performance tracking, error rate monitoring, + Real-time dashboard with system metrics, model performance tracking, error rate monitoring, and health status alerts. Production-ready observability.

āœ… Complete
@@ -550,7 +198,7 @@
Comprehensive Monitoring
Comprehensive Testing

- Complete test suite with 1,094 lines of integration tests covering all endpoints, + Complete test suite with 1,094 lines of integration tests covering all endpoints, edge cases, error scenarios, and security validation. 100% code review issues resolved.

āœ… Complete
@@ -1035,16 +683,6 @@
Deployment Guide
-
-
-
- -
Team Guides
-

Integration guides for all teams

- Learn More -
-
-
@@ -1132,7 +770,7 @@
Connect
- + - \ No newline at end of file + diff --git a/website/integration.html b/website/integration.html deleted file mode 100644 index 6774f8542..000000000 --- a/website/integration.html +++ /dev/null @@ -1,1930 +0,0 @@ - - - - - - Team Integration Guide - SAMO Deep Learning - - - - - - - - - - - - - - - - -
-
-
-
-

Team Integration Guide

-

- Complete integration guides for backend, frontend, UX, and data science teams. - Get your team up and running with SAMO-DL in minutes. -

-
-
-
-
- - -
-
-
-
-

API Overview

-
-
Base URL
- https://samo-unified-api-frrnetyhfa-uc.a.run.app -
- -

Available Endpoints

- -
-
Health Check
- GET /health -

Check API status and model health

-
- -
-
Emotion Detection
- POST /predict -

Analyze text and return detected emotions

-
- -
-
Metrics
- GET /metrics -

Prometheus metrics for monitoring

-
-
-
-
-
- - -
-
-
-
-

- - Backend Integration Guide -

- -
-
-
-
-
Python (Flask/Django)
-

Integrate with Python web frameworks

-
    -
  • Flask integration
  • -
  • Django integration
  • -
  • FastAPI support
  • -
-
-
-
-
-
-
-
Node.js (Express)
-

Integrate with Node.js applications

-
    -
  • Express.js middleware
  • -
  • Error handling
  • -
  • Rate limiting
  • -
-
-
-
-
- -

Quick Start

- -
-
1
-
-
Install Dependencies
-
-
pip install requests
-# or
-npm install axios
-
-
-
- -
-
2
-
-
Create Integration Function
-
-
import requests
-
-def detect_emotion(text: str) -> dict:
-    """Integrate with SAMO Emotion API"""
-    try:
-         response = requests.post(
-            "https://samo-unified-api-frrnetyhfa-uc.a.run.app/analyze/journal",
-            json={"text": text},
-            headers={"Content-Type": "application/json"},
-            timeout=10
-        )
-        response.raise_for_status()
-        return response.json()
-    except requests.exceptions.RequestException as e:
-        print(f"API Error: {e}")
-        return {"error": "Failed to analyze emotions"}
-
-# Example usage
-emotions = detect_emotion("I'm feeling excited about this project!")
-print(emotions)  # [{"emotion": "excitement", "confidence": 0.92}]
-
-
-
- -
-
3
-
-
Add Error Handling
-
-
def safe_emotion_detection(text: str) -> dict:
-    """Safe emotion detection with comprehensive error handling"""
-    if not text or len(text.strip()) == 0:
-        return {"error": "Empty text provided"}
-    
-    if len(text) > 1000:
-        return {"error": "Text too long (max 1000 characters)"}
-    
-    try:
-        emotions = detect_emotion(text)
-        if "error" in emotions:
-            return emotions
-        
-        # Validate response format
-        if not isinstance(emotions, list):
-            return {"error": "Invalid response format"}
-        
-        return {"success": True, "emotions": emotions}
-    except Exception as e:
-        return {"error": f"Unexpected error: {str(e)}"}
-
-
-
-
-
-
-
- - -
-
-
-
-

- - Frontend Integration Guide -

- -
-
-
-
-
React
-

React hooks and components

-
    -
  • Custom hooks
  • -
  • Error boundaries
  • -
  • Loading states
  • -
-
-
-
-
-
-
-
Vue.js
-

Vue composables and components

-
    -
  • Composables
  • -
  • Reactive data
  • -
  • Error handling
  • -
-
-
-
-
-
-
-
Angular
-

Angular services and components

-
    -
  • Injectable services
  • -
  • Observables
  • -
  • Error handling
  • -
-
-
-
-
- -

React Integration Example

- -
-
import React, { useState } from 'react';
-
-// Custom hook for emotion detection
-const useEmotionDetection = () => {
-  const [loading, setLoading] = useState(false);
-  const [error, setError] = useState(null);
-  const [emotions, setEmotions] = useState([]);
-
-  const analyzeEmotion = async (text) => {
-    setLoading(true);
-    setError(null);
-    
-    try {
-      const response = await fetch(
-        'https://samo-unified-api-frrnetyhfa-uc.a.run.app/analyze/journal',
-        {
-          method: 'POST',
-          headers: { 'Content-Type': 'application/json' },
-          body: JSON.stringify({ text, generate_summary: false })
-        }
-      );
-      
-      if (!response.ok) {
-        throw new Error(`HTTP error! status: ${response.status}`);
-      }
-      
-      const data = await response.json();
-      setEmotions(data);
-    } catch (err) {
-      setError(err.message);
-    } finally {
-      setLoading(false);
-    }
-  };
-
-  return { analyzeEmotion, emotions, loading, error };
-};
-
-// React component
-const EmotionAnalyzer = () => {
-  const [text, setText] = useState('');
-  const { analyzeEmotion, emotions, loading, error } = useEmotionDetection();
-
-  const handleSubmit = (e) => {
-    e.preventDefault();
-    if (text.trim()) {
-      analyzeEmotion(text);
-    }
-  };
-
-  return (
-    
- -