AlphamanKing's picture
Update README.md
cf2c10a verified

A newer version of the Gradio SDK is available: 5.33.0

Upgrade
metadata
title: Mental Health Sentiment Analysis API
emoji: 🧠
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.17.1
app_file: app.py
pinned: false

Mental Health Sentiment Analysis API

This Hugging Face Space provides an API endpoint for mental health-related sentiment analysis using the RoBERTa model fine-tuned on emotion detection.

Model Details

  • Base Model: RoBERTa
  • Fine-tuned Version: SamLowe/roberta-base-go_emotions
  • Task: Multi-label emotion classification
  • Input: Text
  • Output: Emotion probabilities and processed mental health context

API Usage

Using Python

import requests

API_URL = "https://your-space-name.hf.space/api/predict"
response = requests.post(API_URL, json={"inputs": "your text here"})
print(response.json())