added computer interface ui

This commit is contained in:
Dillon DuPont
2025-04-17 18:42:02 -04:00
parent 611d629eff
commit 3e3a482cc8
4 changed files with 1522 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
#!/usr/bin/env python3
"""
Simple example script for the Computer Interface Gradio UI.
This script launches the advanced Gradio UI for the Computer Interface
with full model selection and configuration options.
It can be run directly from the command line.
"""
from utils import load_dotenv_files
load_dotenv_files()
# Import the create_gradio_ui function
from computer.ui.gradio.app import create_gradio_ui
if __name__ == "__main__":
print("Launching Computer Interface Gradio UI with advanced features...")
app = create_gradio_ui()
app.launch(share=False)
# Optional: Using the saved dataset
# import datasets
# from computer.ui.utils import convert_to_unsloth
# ds = datasets.load_dataset("ddupont/highquality-cua-demonstrations")
# ds = convert_to_unsloth(ds)