CoolFace
Apppublic

bbbymrphy/chat_bot

sourceHugging Facemitupdated 11mo agoView on Hugging Face
0likes
App README

URL Credibility Analyzer with Neural Network

A comprehensive URL credibility analysis system that combines heuristic scoring with neural network predictions powered by Claude AI.

๐ŸŒŸ Features

  • โ€”Heuristic Analysis: URL structure, content quality, PageRank, popularity scoring
  • โ€”Neural Network: Deep learning model trained on Claude-labeled data
  • โ€”Claude Integration: AI-powered credibility assessment and chat
  • โ€”Interactive UI: Three modes - Chat with Claude, Single URL Analysis, Batch Analysis
  • โ€”Real-time Analysis: Automatically analyzes URLs mentioned in conversations

๐Ÿš€ How to Use

Configuration

  1. 1.Set API Key: Add your Anthropic API key in the Hugging Face Space secrets:
  2. 2.Go to Settings > Variables and secrets
  3. 3.Add a new secret: ANTHROPIC_API_KEY with your API key

Chat Mode

  1. 1.Navigate to the "Claude Chat" tab
  2. 2.Ask Claude questions about credibility or provide text with URLs
  3. 3.Claude will automatically analyze any URLs in the responses
  4. 4.Enable/disable Neural Network predictions in the sidebar

Single URL Analysis

  1. 1.Go to the "URL Analysis" tab
  2. 2.Enter a URL to analyze
  3. 3.Get detailed credibility scores and Claude's interpretation
  4. 4.View metrics: Combined Score, URL Score, Content Score, Popularity

Batch Analysis

  1. 1.Navigate to "Batch Analysis" tab
  2. 2.Paste multiple URLs (one per line)
  3. 3.Get comprehensive analysis with:
  4. 4.Summary statistics
  5. 5.Sortable results table
  6. 6.CSV export
  7. 7.Claude's batch summary

๐Ÿ“Š Credibility Metrics

  • โ€”URL Score: Domain authority, HTTPS, suspicious patterns
  • โ€”Content Score: Text quality, readability, sentiment analysis
  • โ€”Popularity Score: Domain ranking and recognition
  • โ€”PageRank: Network-based credibility
  • โ€”NN Prediction: Neural network confidence scores (if model available)

๐ŸŽฏ Settings

  • โ€”Claude Model: Select AI model (Haiku for speed)
  • โ€”Max Tokens: Control response length (100-4000)
  • โ€”Temperature: Adjust response creativity (0.0-1.0)
  • โ€”Auto-analyze URLs: Toggle automatic URL detection
  • โ€”Neural Network: Enable/disable NN predictions

๐Ÿง  Neural Network

The optional neural network analyzes 46+ features including:

  • โ€”URL structure and security indicators
  • โ€”Content metrics (sentiment, readability, formality)
  • โ€”PageRank and popularity signals
  • โ€”Advertisement detection
  • โ€”Domain characteristics

Note: Neural network predictions require a trained model file.

๐Ÿ”’ Privacy & Security

  • โ€”URL content is fetched server-side
  • โ€”No user data is stored permanently
  • โ€”API keys are securely managed through Hugging Face Secrets
  • โ€”All communications use HTTPS

๐Ÿ’ก Tips

  • โ€”Higher scores (>0.7) indicate more credible sources
  • โ€”Medium scores (0.4-0.7) warrant additional verification
  • โ€”Low scores (<0.4) suggest caution
  • โ€”Check multiple metrics for comprehensive assessment
  • โ€”Use Claude's analysis for contextual insights

๐Ÿ“ Technical Details

Built with:

  • โ€”Streamlit: Interactive web interface
  • โ€”PyTorch: Neural network implementation
  • โ€”Claude AI: Natural language processing
  • โ€”NetworkX: PageRank computation
  • โ€”BeautifulSoup: Web scraping
  • โ€”Pandas: Data analysis

๐Ÿค Contributing

This project was developed as part of CS676. For issues or improvements, please contact the development team.


Built with PyTorch, Streamlit, Claude AI, and โค๏ธ