Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,6 @@ class VQVAE2(nn.Module):
|
|
42 |
|
43 |
# Diffusion Model Definition
|
44 |
class Diffusion(nn.Module):
|
45 |
-
# FIXED: Changed n_head default from 8 to 4 to make dimensions compatible
|
46 |
def __init__(self, n_inputs=3, n_embed=512, n_head=4, n_layer=12):
|
47 |
super().__init__()
|
48 |
self.time_embed = nn.Embedding(1000, n_inputs * 4)
|
@@ -257,4 +256,5 @@ iface = gr.Interface(
|
|
257 |
)
|
258 |
|
259 |
# 🚀 Launch the Gradio interface
|
260 |
-
|
|
|
|
42 |
|
43 |
# Diffusion Model Definition
|
44 |
class Diffusion(nn.Module):
|
|
|
45 |
def __init__(self, n_inputs=3, n_embed=512, n_head=4, n_layer=12):
|
46 |
super().__init__()
|
47 |
self.time_embed = nn.Embedding(1000, n_inputs * 4)
|
|
|
256 |
)
|
257 |
|
258 |
# 🚀 Launch the Gradio interface
|
259 |
+
# FIXED: Replaced deprecated 'enable_queue=True' with the .queue() method
|
260 |
+
iface.queue().launch()
|