Spaces:
Runtime error
Runtime error
set enable_queue to True to allow gradio function to run longer than 1 minute
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
import gradio as gr
|
| 3 |
"""An example of generating a gif explanation for an image of my dog."""
|
|
@@ -99,6 +100,6 @@ if __name__ == "__main__":
|
|
| 99 |
outputs=out,
|
| 100 |
examples=[["./imagenet_diego.png", 0.05, 7, 50]]
|
| 101 |
)
|
| 102 |
-
iface.launch()
|
| 103 |
|
| 104 |
# app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|
|
|
|
| 1 |
+
from cgitb import enable
|
| 2 |
import numpy as np
|
| 3 |
import gradio as gr
|
| 4 |
"""An example of generating a gif explanation for an image of my dog."""
|
|
|
|
| 100 |
outputs=out,
|
| 101 |
examples=[["./imagenet_diego.png", 0.05, 7, 50]]
|
| 102 |
)
|
| 103 |
+
iface.launch(enable_queue = True)
|
| 104 |
|
| 105 |
# app.run(host='0.0.0.0', port=int(os.environ.get('PORT', 7860)))
|