Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
def main():
|
| 5 |
|
| 6 |
# Define the components using the specified URLs
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
# Import spaces from gradio
|
| 4 |
+
from gradio import spaces
|
| 5 |
+
|
| 6 |
+
# Assign GPU to the overall spaces
|
| 7 |
+
@spaces.GPU(queue=False)
|
| 8 |
def main():
|
| 9 |
|
| 10 |
# Define the components using the specified URLs
|