Spaces:
Paused
Paused
Update gradio_app.py
Browse files- gradio_app.py +5 -5
gradio_app.py
CHANGED
@@ -192,7 +192,7 @@ def main():
|
|
192 |
|
193 |
with gr.Blocks() as demo:
|
194 |
wrapped_model = ModelWrapper()
|
195 |
-
model =
|
196 |
sample_z = torch.randn([1, 512], device=device)
|
197 |
latent, noise = wrapped_model.g_ema.prepare([sample_z])
|
198 |
sample, F = wrapped_model.g_ema.generate(latent, noise)
|
@@ -213,15 +213,15 @@ def main():
|
|
213 |
|
214 |
""",
|
215 |
)
|
216 |
-
state =
|
217 |
'latent': latent,
|
218 |
'noise': noise,
|
219 |
'F': F,
|
220 |
'sample': sample,
|
221 |
'history': []
|
222 |
-
}
|
223 |
-
points =
|
224 |
-
size =
|
225 |
|
226 |
with gr.Row():
|
227 |
with gr.Column(scale=0.3):
|
|
|
192 |
|
193 |
with gr.Blocks() as demo:
|
194 |
wrapped_model = ModelWrapper()
|
195 |
+
model = wrapped_model
|
196 |
sample_z = torch.randn([1, 512], device=device)
|
197 |
latent, noise = wrapped_model.g_ema.prepare([sample_z])
|
198 |
sample, F = wrapped_model.g_ema.generate(latent, noise)
|
|
|
213 |
|
214 |
""",
|
215 |
)
|
216 |
+
state = [{
|
217 |
'latent': latent,
|
218 |
'noise': noise,
|
219 |
'F': F,
|
220 |
'sample': sample,
|
221 |
'history': []
|
222 |
+
}]
|
223 |
+
points = [{'target': [], 'handle': []}]
|
224 |
+
size = 1024
|
225 |
|
226 |
with gr.Row():
|
227 |
with gr.Column(scale=0.3):
|