mirror of
https://github.com/trycua/computer.git
synced 2026-01-05 21:09:58 -06:00
added computer interface ui
This commit is contained in:
27
examples/computer_ui_examples.py
Normal file
27
examples/computer_ui_examples.py
Normal 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)
|
||||
Reference in New Issue
Block a user