Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,6 +89,7 @@ def get_normals(vertices: torch.Tensor, faces: torch.Tensor) -> torch.Tensor:
|
|
| 89 |
return normals
|
| 90 |
|
| 91 |
|
|
|
|
| 92 |
def generate(
|
| 93 |
prompt: str,
|
| 94 |
seed: int,
|
|
@@ -202,7 +203,6 @@ def launch_app(gen_fn: Callable):
|
|
| 202 |
demo.queue().launch(share=False)
|
| 203 |
|
| 204 |
|
| 205 |
-
@spaces.GPU
|
| 206 |
def main():
|
| 207 |
# Initialize the models and dataset
|
| 208 |
diffuser, clip_model, dataset, device = init("config")
|
|
|
|
| 89 |
return normals
|
| 90 |
|
| 91 |
|
| 92 |
+
@spaces.GPU
|
| 93 |
def generate(
|
| 94 |
prompt: str,
|
| 95 |
seed: int,
|
|
|
|
| 203 |
demo.queue().launch(share=False)
|
| 204 |
|
| 205 |
|
|
|
|
| 206 |
def main():
|
| 207 |
# Initialize the models and dataset
|
| 208 |
diffuser, clip_model, dataset, device = init("config")
|