akhaliq HF staff commited on
Commit
11c80e1
1 Parent(s): be6090c

only return output enable queue and cache

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,7 +51,7 @@ def generate(image,context, length, temperature, top_k):
51
  top_k = top_k
52
  )
53
 
54
- return context + output[0]
55
 
56
  iface = gr.Interface(
57
  fn=generate,
@@ -65,6 +65,6 @@ iface = gr.Interface(
65
  gr.inputs.Slider(minimum=0, maximum=100, default=0, step=1, label='Top K')
66
  ],
67
  outputs=["textbox"]
68
- ).launch()
69
 
70
 
 
51
  top_k = top_k
52
  )
53
 
54
+ return output[0]
55
 
56
  iface = gr.Interface(
57
  fn=generate,
 
65
  gr.inputs.Slider(minimum=0, maximum=100, default=0, step=1, label='Top K')
66
  ],
67
  outputs=["textbox"]
68
+ ).launch(enable_queue=True,cache_examples=True)
69
 
70