Spaces:
Sleeping
Sleeping
Update demo.py
Browse files
demo.py
CHANGED
@@ -178,15 +178,16 @@ def shapeSampleDemo(style,resn):
|
|
178 |
character = character[:1]
|
179 |
print(f"Keeping only first character ({character})!")
|
180 |
length=st.sidebar.number_input('length,step=100',min_value=100,max_value=1500,step=100,value=1000,key='length_shape')
|
181 |
-
|
182 |
-
conditioner = conditioners.ShapeConditioner(
|
183 |
-
letter_point_cloud,
|
184 |
-
chroma.backbone_network.noise_schedule,
|
185 |
-
autoscale_num_residues=length,
|
186 |
-
).to(device)
|
187 |
if st.sidebar.button("Run Code with Button",key="shape"):
|
|
|
|
|
|
|
|
|
|
|
|
|
188 |
shapeSample(length,conditioner,output)
|
189 |
-
|
190 |
display(output,style,resn)
|
191 |
|
192 |
|
|
|
178 |
character = character[:1]
|
179 |
print(f"Keeping only first character ({character})!")
|
180 |
length=st.sidebar.number_input('length,step=100',min_value=100,max_value=1500,step=100,value=1000,key='length_shape')
|
181 |
+
|
|
|
|
|
|
|
|
|
|
|
182 |
if st.sidebar.button("Run Code with Button",key="shape"):
|
183 |
+
letter_point_cloud = letter_to_point_cloud(character)
|
184 |
+
conditioner = conditioners.ShapeConditioner(
|
185 |
+
letter_point_cloud,
|
186 |
+
chroma.backbone_network.noise_schedule,
|
187 |
+
autoscale_num_residues=length,
|
188 |
+
).to(device)
|
189 |
shapeSample(length,conditioner,output)
|
190 |
+
|
191 |
display(output,style,resn)
|
192 |
|
193 |
|