Spaces:
Paused
Paused
Enable ZeroGPU for Gradio tool
Browse files- app.py +2 -0
- requirements.txt +1 -0
app.py
CHANGED
|
@@ -1,5 +1,7 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
|
|
|
| 3 |
def my_tool(input_text: str) -> str:
|
| 4 |
"""Do something with input.
|
| 5 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import spaces
|
| 3 |
|
| 4 |
+
@spaces.GPU
|
| 5 |
def my_tool(input_text: str) -> str:
|
| 6 |
"""Do something with input.
|
| 7 |
|
requirements.txt
CHANGED
|
@@ -1,2 +1,3 @@
|
|
| 1 |
gradio>=4.0.0
|
| 2 |
requests>=2.28.0
|
|
|
|
|
|
| 1 |
gradio>=4.0.0
|
| 2 |
requests>=2.28.0
|
| 3 |
+
spaces
|