awacke1 commited on
Commit
b7e076b
·
verified ·
1 Parent(s): 3a68d7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- iface.launch(enable_queue=True)
 
 
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()