speech-test commited on
Commit
3368fa1
·
1 Parent(s): 4556b47

Series queue

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -31,13 +31,12 @@ def dalle_wrapper(prompt: str):
31
 
32
 
33
  translator = gr.Interface.load("huggingface/facebook/wmt19-en-ru",
34
- inputs=[gr.inputs.Textbox(label="What would you like to see?")],
35
- enable_queue=True)
36
  outputs = [
37
  gr.outputs.HTML(label=""),
38
  gr.outputs.Image(label=""),
39
  ]
40
- generator = gr.Interface(fn=dalle_wrapper, inputs="text", outputs=outputs, enable_queue=True)
41
 
42
 
43
  description = (
@@ -64,7 +63,8 @@ series = Series(translator, generator,
64
  theme='huggingface',
65
  examples=examples,
66
  allow_flagging=False,
67
- live=False,
 
68
  )
69
  series.launch()
70
 
 
31
 
32
 
33
  translator = gr.Interface.load("huggingface/facebook/wmt19-en-ru",
34
+ inputs=[gr.inputs.Textbox(label="What would you like to see?")])
 
35
  outputs = [
36
  gr.outputs.HTML(label=""),
37
  gr.outputs.Image(label=""),
38
  ]
39
+ generator = gr.Interface(fn=dalle_wrapper, inputs="text", outputs=outputs)
40
 
41
 
42
  description = (
 
63
  theme='huggingface',
64
  examples=examples,
65
  allow_flagging=False,
66
+ live=False,
67
+ enable_queue=True,
68
  )
69
  series.launch()
70