Spaces:
Sleeping
Sleeping
A newer version of the Streamlit SDK is available:
1.54.0
metadata
title: Claude Simple Chatbot
emoji: 🤖
colorFrom: blue
colorTo: purple
sdk: streamlit
sdk_version: 1.34.0
app_file: app.py
pinned: false
license: mit
Claude Simple Chatbot 🤖
A simple, elegant chatbot built with Streamlit and Anthropic's Claude AI.
Features
- Multiple Claude Models: Choose between Haiku, Sonnet, and Opus
- Persistent Chat History: Conversations stay active during your session
- Clean Interface: Modern, responsive design with sidebar controls
- Easy Setup: Just add your API key and start chatting
- Model Selection: Switch between different Claude models on the fly
How to Use
- Enter API Key: Add your Anthropic API key in the sidebar
- Choose Model: Select your preferred Claude model
- Start Chatting: Type your message and enjoy!
Getting Your API Key
- Visit Anthropic Console
- Create an account and get your API key
- It should start with
sk-ant-
Example Prompts
- "Explain quantum computing in simple terms"
- "Write a Python function to sort a list"
- "Help me plan a weekend itinerary for Tokyo"
- "What are the pros and cons of remote work?"
Architecture
- Frontend: Streamlit for the web interface
- Backend: Anthropic Python SDK for Claude API integration
- State Management: Streamlit session state for chat history
- Error Handling: Graceful error messages and connection handling