Spaces:
Runtime error
Runtime error
Commit ·
2cd9afa
1
Parent(s): 9d0e9cd
Update rosettafold_pymol.py
Browse files141 unmodified lines1421431441451461471482 unmodified lines151152153154155156157158159160161162163164165166141 unmodified linesurl = "http://localhost:7860"except requests.exceptions.ConnectionError:url = "https://simonduerr-rosettafold2.hf.space"response = requests.post(url + "/run/rosettafold2/",json={2 unmodified linesjobname, # str in 'jobname' Textbox componentsym, # str in 'sym' Textbox componentorder, # int | float (numeric value between 1 and 12) in 'order' Slider component"diag", # str (Option from: ['diag', 'repeat', 'default']) in 'msa_concat_mode' Dropdown component"single_sequence", # str (Option from: ['mmseqs2', 'single_sequence', 'custom_a3m']) in 'msa_method' Dropdown component"unpaired_paired", # str (Option from: ['unpaired_paired', 'paired', 'unpaired']) in 'pair_mode' Dropdown componentFalse, # bool in 'collapse_identical' Checkbox component6, # int (Option from: ['0', '1', '3', '6', '12', '24']) in 'num_recycles' Dropdown componentFalse, # bool in 'use_mlm' Checkbox componentFalse, # bool in 'use_dropout' Checkbox component16, # int (Option from: ['16', '32', '64', '128', '256', '512']) in 'max_msa' Dropdown component0, # int in 'random_seed' Textbox component1, # int (Option from: ['1', '2', '4', '8', '16', '32']) in 'num_models' Dropdown component]},).json()141 unmodified lines1421431441451461471482 unmodified lines151152153154155156157158159160161162163164165166141 unmodified linesurl = "http://localhost:7860"except requests.exceptions.ConnectionError:url = "https://simonduerr-rosettafold2.hf.space"print(f'querying {url}')response = requests.post(url + "/run/rosettafold2/",json={2 unmodified linesjobname, # str in 'jobname' Textbox componentsym, # str in 'sym' Textbox componentorder, # int | float (numeric value between 1 and 12) in 'order' Slider componentmsa_concat_mode, # str (Option from: ['diag', 'repeat', 'default']) in 'msa_concat_mode' Dropdown componentmsa_method, # str (Option from: ['mmseqs2', 'single_sequence', 'custom_a3m']) in 'msa_method' Dropdown componentpair_mode, # str (Option from: ['unpaired_paired', 'paired', 'unpaired']) in 'pair_mode' Dropdown componentcollapse_identical, # bool in 'collapse_identical' Checkbox componentnum_recycles, # int (Option from: ['0', '1', '3', '6', '12', '24']) in 'num_recycles' Dropdown componentuse_mlm, # bool in 'use_mlm' Checkbox componentuse_dropout, # bool in 'use_dropout' Checkbox componentmax_msa, # int (Option from: ['16', '32', '64', '128', '256', '512']) in 'max_msa' Dropdown componentrandom_seed, # int in 'random_seed' Textbox componentnum_models, # int (Option from: ['1', '2', '4', '8', '16', '32']) in 'num_models' Dropdown component]},).json()
rosettafold_pymol.py+11-11