Spaces:
Running
on
L40S
Running
on
L40S
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import os
|
|
2 |
import math
|
3 |
import time
|
4 |
import numpy
|
|
|
5 |
import random
|
6 |
import threading
|
7 |
import gradio as gr
|
@@ -320,6 +321,7 @@ with gr.Blocks() as demo:
|
|
320 |
</table>
|
321 |
""")
|
322 |
|
|
|
323 |
def generate(
|
324 |
prompt,
|
325 |
image_input,
|
|
|
2 |
import math
|
3 |
import time
|
4 |
import numpy
|
5 |
+
import spaces
|
6 |
import random
|
7 |
import threading
|
8 |
import gradio as gr
|
|
|
321 |
</table>
|
322 |
""")
|
323 |
|
324 |
+
@spaces.GPU(duration=300)
|
325 |
def generate(
|
326 |
prompt,
|
327 |
image_input,
|