Spaces:
Sleeping
Sleeping
metadata
title: Mindful CBT Chatbot API
emoji: 🧠
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false
Mindful - CBT Chatbot API
A cognitive behavioral therapy chatbot powered by fine-tuned Qwen2.5-0.5B model.
Features
- CBT-focused conversational AI
- Low latency responses
- Context-aware conversations
- REST API for easy integration
API Endpoints
Health Check
GET /health
Generate Response
POST /generate
Content-Type: application/json
{
"messages": [
{"role": "user", "content": "I'm feeling anxious about tomorrow"},
{"role": "assistant", "content": "I understand..."},
{"role": "user", "content": "What can I do?"}
],
"max_tokens": 512,
"temperature": 0.7,
"top_p": 0.9
}
Setup
This Space uses a fine-tuned Qwen2.5-0.5B model with LoRA adapters trained for CBT conversations.
Usage with Flutter App
Update the _baseUrl in your Flutter app's llm_service.dart:
static const String _baseUrl = 'https://YOUR-USERNAME-mindful-cbt.hf.space/generate';
License
For demonstration and patent filing purposes.