- Create App with UI from simple parameter table
- Easy code generation using ChatGPT
- Install library in python environment
pip install git+https://github.com/covao/ParamUI
- Download paramui.py and copy to the folder where you run the python script
Parameter table is containing the following columns
- Prameter Variable
- Parameter Label
- Initial Value
- Range
- Slider: [Min, Max, Step]
- Check Box: []
- Selecter: ['A','B']
- Edit Box: []
- File Selecter: '*.txt;*.doc'
- Folder Selecter: 'folder'
- Button: 'button'
ParameterTable = [
['A', 'Parameter A', 0.5, [0, 1, 0.1]],
['B', 'Parameter B This is a pen', 200, [100, 500, 10]],
['F1', 'Flag 1', True, []],
['F2', 'Flag 2', False, []],
['S1', 'Select 1', 'Two', ['One', 'Two', 'Three']],
['S2', 'Select 2', 'Three', ['One', 'Two', 'Three']],
['Name1', 'Name 1', 'Taro', []],
['Name2', 'Name 2', 'Jiro', []],
['File1', 'File 1', '', '*.py;*.txt'],
['Folder1', 'Folder 1', '', 'folder'],
['Run', 'Run!', False, 'button'],
]
from paramui import paramui
def usrfunc(Prm):
if not Prm.Run:
return
print(Prm)
paramui(ParameterTable, usrfunc)
from paramui import paramui
import time
pu = paramui(ParameterTable)
while pu.IsAlive:
print(pu.Prm)
time.sleep(0.5)
from paramui import paramui
def usrfunc(Prm):
if not Prm.Run:
return
print(Prm)
paramui(ParameterTable, usrfunc, False)
- Generate prompt of UI app using LLM
Try prompt! e.g. ChatGPT, Bing Chat, Bard
Start ParamUI Prompt Designer