Spaces:
Runtime error
Runtime error
Commit History
-
π§ refactor(ai.py, app.py): optimize imports and improve code readabilityβ
Unverified signatureπ§ refactor(ai.py): move instantiation of Anthropic clients into methods to ensure correct API key usage π§ refactor(app.py): add API key validation and improve error messages for better user experience π§ refactor(settings.py): load environment variables at the start of the file for better code organization π§ refactor(Dockerfile): add creation of 'flagged' and 'gradio_cached_examples' directories to Dockerfile π§ refactor(.gitignore): remove comment to actually ignore 'flagged' and 'gradio_cached_examples' directories74dace5 -
π³ fix(Dockerfile): change CMD from python app.py to uvicorn claude_space.app:gd to use Uvicorn as ASGI serverβ
Unverified signatureβ¨ feat(claude_space): add ai.py, app.py, const.py, settings.py for AI interaction and server setup π§ chore(pyproject.toml): add isort to dependencies for better code formatting1686903 -
π§ refactor(ai.py): reorder imports and improve code readabilityβ
Unverified signatureπ§ refactor(Dockerfile): replace poetry build and pip install with poetry install for simplicity π§ refactor(.dockerignore, .gitignore): add newline at end of file for POSIX compliance β¨ feat(.flake8, .pre-commit-config.yaml): add flake8 and pre-commit configuration files for better code quality control π¨ style(app.py, const.py, makefile): improve code readability by reformatting code and removing unnecessary whitespace π₯ remove(anthropic): remove unused import in const.py for cleaner code π§ chore(pyproject.toml): add flake8, pre-commit to dev-dependencies for better code quality control π§ chore(pyproject.toml): configure isort and black for consistent code formatting π¨ style(settings.py): improve code formatting to adhere to PEP8 standards42cdc8f -
π feat: add Docker support, AI interaction, and chat interfaceβ
Unverified signatureπ³ chore: add Dockerfile and .dockerignore for Docker support π€ feat(ai.py): add AI interaction with anthropic API π¬ feat(app.py): add chat interface with AI using gradio π§ chore(makefile): add makefile for easy start command π chore(.gitignore): add .gitignore to ignore unnecessary files π chore(const.py): add constants for models, token lengths, and prompts β¨ feat: add pyproject.toml and settings.py for project configuration π docs(pyproject.toml): define project metadata and dependencies using poetry π§ chore(settings.py): add settings file to manage environment variables35cce96