Spaces:
Paused
Paused
Update README.md
Browse files1234567891011---title: Prompt Testeremoji: πcolorFrom: purplecolorTo: graysdk: staticpinned: falselicense: apache-2.0---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485---title: Prompt A/B Testeremoji: π¬colorFrom: bluecolorTo: purplesdk: streamlitsdk_version: 1.28.0app_file: app.pypinned: falselicense: mit---# Prompt A/B TesterWeb application for testing and comparing the performance of two OpenAI GPT prompt versions with A/B testing methodology.## Features- **API Key Management**: Securely store OpenAI API key in Streamlit secrets- **Model Selection**: Choose from available GPT models (gpt-4o, gpt-4, gpt-3.5-turbo)- **Parameter Configuration**:- Temperature (0.0 - 2.0)- Max Tokens (100 - 4000)- Number of responses (1-50)- **Two Input Methods**:- Upload `.md` or `.txt` files- Paste text directly- **Progress Tracking**: Real-time progress bars and logs- **Interactive Rating**: Rate responses on a 1-5 scale- **Results Visualization**: Compare prompts with statistics- **CSV Export**: Download results with metadata## Usage### 1. Configuration1. Go to "βοΈ Configuration" tab2. Enter your OpenAI API key3. Select model and adjust parameters4. Save settings### 2. Run Test1. Go to "π Test" tab2. Either upload two files OR paste two prompts3. Click "Run Test"4. Monitor progress### 3. Rate Responses1. After generation, go to "β Rating" tab2. Rate each response (1-5)3. Click "Calculate Results"### 4. View Results1. Review statistics in "π Results" tab2. Export to CSV if needed## Configuration on Hugging Face SpacesTo use this app on Hugging Face Spaces:1. Go to Settings β Repository secrets2. Add a new secret:- **Name**: `OPENAI_API_KEY`- **Value**: Your OpenAI API key## Cost EstimationApproximate costs per test (2025 pricing):| Model | 10 responses (5A + 5B) | 20 responses (10A + 10B) ||-------|------------------------|---------------------------|| gpt-4o | ~$0.05 | ~$0.10 || gpt-4-turbo | ~$0.15 | ~$0.30 || gpt-4 | ~$0.30 | ~$0.60 || gpt-3.5-turbo | ~$0.01 | ~$0.02 |## Project Information**Version**: 2.0 (Streamlit)**Original Project**: Manuscripto - Medical Editorial Assistant**Created**: 2025-10-14**License**: MIT
README.md+81-7