Spaces:
Runtime error
Runtime error
only return output enable queue and cache
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ def generate(image,context, length, temperature, top_k):
|
|
| 51 |
top_k = top_k
|
| 52 |
)
|
| 53 |
|
| 54 |
-
return
|
| 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 |
|