Spaces:
Paused
Paused
Update app_ltx.py
Browse files- app_ltx.py +2 -2
app_ltx.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
-
|
| 4 |
import numpy as np
|
| 5 |
import random
|
| 6 |
import os
|
|
@@ -108,7 +108,7 @@ def round_to_nearest_resolution(height, width):
|
|
| 108 |
width = width - (width % ratio)
|
| 109 |
return int(height), int(width)
|
| 110 |
|
| 111 |
-
|
| 112 |
def generate(
|
| 113 |
prompt: str,
|
| 114 |
image_input: Optional[str],
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
+
|
| 4 |
import numpy as np
|
| 5 |
import random
|
| 6 |
import os
|
|
|
|
| 108 |
width = width - (width % ratio)
|
| 109 |
return int(height), int(width)
|
| 110 |
|
| 111 |
+
|
| 112 |
def generate(
|
| 113 |
prompt: str,
|
| 114 |
image_input: Optional[str],
|