A newer version of the Gradio SDK is available:
6.3.0
π Quick Start Guide
Running the HITL Drug Discovery Application
Option 1: Easy Launcher (Recommended)
python run.py
Option 2: Direct Launch
# Activate virtual environment
source venv/bin/activate # On Windows: venv\Scripts\activate
# Run the application
python app.py
Option 3: Legacy Version (Backup)
# Activate virtual environment
source venv/bin/activate
# Run legacy version
python legacy/app_legacy.py
π Access the Application
Once running, open your browser and go to: http://localhost:7860
π Stop the Application
Press Ctrl+C in the terminal to stop the application.
π Project Structure
app.py- Main entry point (works for both local and Hugging Face Spaces)run.py- Easy launcher scriptsrc/- Modular source codelegacy/- Legacy monolithic version (backup)venv/- Virtual environment
π§ Troubleshooting
Virtual Environment Issues
# Create virtual environment
python -m venv venv
# Activate it
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Import Errors
Make sure you're in the project directory and virtual environment is activated.
Port Already in Use
If port 7860 is busy, the app will automatically use the next available port.