Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available: 6.13.0
metadata
title: CZ English
emoji: π§βπ«
colorFrom: blue
colorTo: yellow
sdk: gradio
sdk_version: 5.22.0
python_version: 3.10.0
app_file: app.py
pinned: false
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Local Development Setup
Setting up Virtual Environment
- Create a Virtual Environment
python3 -m venv venv
- Activate the Virtual Environment
# On Unix/macOS
source venv/bin/activate
# On Windows
.\venv\Scripts\activate
- Install Dependencies
pip install -r requirements.txt
- Verify Installation
pip list
- Start the Application
# Make sure the script is executable
chmod +x run_app.sh
# Run the application
./run_app.sh
- When you're done, deactivate the Virtual Environment
deactivate
Notes
- Make sure you have Python 3.13.0 installed
- The application runs on Gradio SDK version 5.12.0
# Project Root Directory
handlers/ - Group all event handlers here
β βββ __init__.py # Initialize the handlers package
β βββ chat_handler.py # Handles chat-related events
β βββ history_handler.py # Manages undo/redo actions
β βββ file_handler.py # Handles different output file events
services/ - Business logic & external APIs
β βββ drive_service.py # Handles interactions with Drive
β βββ openai_service.py # Manages OpenAI API calls
interface/ - UI logic (CLI, GUI, etc.)
β βββ main_interface.py # Main interface logic
β βββ components/ # Reusable UI components
β βββ __init__.py # Initialize the components package
utils/ - Generic helper functions
β βββ logger.py # Logging utilities
app.py - Main entry point of the application