CZ-English / README.md
Yu Chen
fix proj name
d1dc111

A newer version of the Gradio SDK is available: 6.13.0

Upgrade
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

  1. Create a Virtual Environment
python3 -m venv venv
  1. Activate the Virtual Environment
# On Unix/macOS
source venv/bin/activate

# On Windows
.\venv\Scripts\activate
  1. Install Dependencies
pip install -r requirements.txt
  1. Verify Installation
pip list
  1. Start the Application
# Make sure the script is executable
chmod +x run_app.sh

# Run the application
./run_app.sh
  1. 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