Spaces:
Runtime error
Runtime error
Commit
·
2cd9afa
1
Parent(s):
9d0e9cd
Update rosettafold_pymol.py
Browse files- rosettafold_pymol.py +11 -11
rosettafold_pymol.py
CHANGED
|
@@ -142,7 +142,7 @@ def query_rosettafold2(
|
|
| 142 |
url = "http://localhost:7860"
|
| 143 |
except requests.exceptions.ConnectionError:
|
| 144 |
url = "https://simonduerr-rosettafold2.hf.space"
|
| 145 |
-
|
| 146 |
response = requests.post(
|
| 147 |
url + "/run/rosettafold2/",
|
| 148 |
json={
|
|
@@ -151,16 +151,16 @@ def query_rosettafold2(
|
|
| 151 |
jobname, # str in 'jobname' Textbox component
|
| 152 |
sym, # str in 'sym' Textbox component
|
| 153 |
order, # int | float (numeric value between 1 and 12) in 'order' Slider component
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
]
|
| 165 |
},
|
| 166 |
).json()
|
|
|
|
| 142 |
url = "http://localhost:7860"
|
| 143 |
except requests.exceptions.ConnectionError:
|
| 144 |
url = "https://simonduerr-rosettafold2.hf.space"
|
| 145 |
+
print(f'querying {url}')
|
| 146 |
response = requests.post(
|
| 147 |
url + "/run/rosettafold2/",
|
| 148 |
json={
|
|
|
|
| 151 |
jobname, # str in 'jobname' Textbox component
|
| 152 |
sym, # str in 'sym' Textbox component
|
| 153 |
order, # int | float (numeric value between 1 and 12) in 'order' Slider component
|
| 154 |
+
msa_concat_mode, # str (Option from: ['diag', 'repeat', 'default']) in 'msa_concat_mode' Dropdown component
|
| 155 |
+
msa_method, # str (Option from: ['mmseqs2', 'single_sequence', 'custom_a3m']) in 'msa_method' Dropdown component
|
| 156 |
+
pair_mode, # str (Option from: ['unpaired_paired', 'paired', 'unpaired']) in 'pair_mode' Dropdown component
|
| 157 |
+
collapse_identical, # bool in 'collapse_identical' Checkbox component
|
| 158 |
+
num_recycles, # int (Option from: ['0', '1', '3', '6', '12', '24']) in 'num_recycles' Dropdown component
|
| 159 |
+
use_mlm, # bool in 'use_mlm' Checkbox component
|
| 160 |
+
use_dropout, # bool in 'use_dropout' Checkbox component
|
| 161 |
+
max_msa, # int (Option from: ['16', '32', '64', '128', '256', '512']) in 'max_msa' Dropdown component
|
| 162 |
+
random_seed, # int in 'random_seed' Textbox component
|
| 163 |
+
num_models, # int (Option from: ['1', '2', '4', '8', '16', '32']) in 'num_models' Dropdown component
|
| 164 |
]
|
| 165 |
},
|
| 166 |
).json()
|