{"id":20834786,"url":"https://github.com/promptable/streamlit-playground","last_synced_at":"2025-04-10T10:11:43.676Z","repository":{"id":146129841,"uuid":"569371806","full_name":"promptable/streamlit-playground","owner":"promptable","description":"Streamlit Version of OAI Playground with Batch Inputs","archived":false,"fork":false,"pushed_at":"2022-11-24T00:34:43.000Z","size":578,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T09:03:39.259Z","etag":null,"topics":["chatbot","chatgpt","gpt3","openai","python","streamlit"],"latest_commit_sha":null,"homepage":"https://promptable.ai","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/promptable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-22T17:15:23.000Z","updated_at":"2024-09-27T12:29:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"933632b1-2567-4982-a11f-2f152b30746f","html_url":"https://github.com/promptable/streamlit-playground","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptable%2Fstreamlit-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptable%2Fstreamlit-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptable%2Fstreamlit-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/promptable%2Fstreamlit-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/promptable","download_url":"https://codeload.github.com/promptable/streamlit-playground/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198888,"owners_count":21063628,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatbot","chatgpt","gpt3","openai","python","streamlit"],"created_at":"2024-11-18T00:20:49.029Z","updated_at":"2025-04-10T10:11:43.668Z","avatar_url":"https://github.com/promptable.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Streamlit Playground (e.g. OpenAI Playground)\n\n(Attempt) to replicate OpenAI playground in Streamlit, but with additional features like running batches of inputs.\n\n### Playground\n\n![Playground](data/playground.png)\n\n### Batch Inputs\n\n![Batch Inputs](data/inputs.png)\n\n\n## Setup\n\nRequires Python 3.6+. Tested on Mac M1 Python 3.9.\n\n1. Create an account with OpenAI and add your API key to `.env.secrets`\n\n2. Install python requirements.\n\n```bash\n# Ensure you're using python 3.6+\npython3 --version\n\n# Uses your default python environment\npip3 install -r requirements.txt\n\n# Alternatively, create a virtual environment (recommended)\npip3 install virtualenv\nvirtualenv .venv --python python3\nsource .venv/bin/activate\npip3 install -r requirements.txt\n```\n\nNOTE: If you're on Mac M1, and get stuck installing gevent / grpcio, try this:\n\n```bash\npip3 install --no-cache-dir --upgrade --force-reinstall -Iv grpcio gevent\n\npip3 install -r requirements.txt\n```\n\n3. Run streamlit\n\n```bash\n# Run the streamlit app\nstreamlit run playground_streamlit.py\n\n# Should open a new tab in your browser at\nhttp://localhost:8501/\n\n# If running on remote box (EC2, etc). Expose the port, then:\nstreamlit run --server.headless true playground_streamlit.py --server.port 8502\n```\n\n## Adding passwords\n\nIf you're hosting, do this to get password protection.\n\n```bash\n\n```\n\n## Backlog\n\n- S3 backend for saving prompts, inputs\n- Add more models/providers\n- Streaming completions\n\nFeel free to add features and submit PRs!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptable%2Fstreamlit-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpromptable%2Fstreamlit-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpromptable%2Fstreamlit-playground/lists"}