Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
demo = gr.Interface(fn=echo, inputs="text", outputs="text")
|
| 6 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import spaces
|
| 3 |
|
| 4 |
+
@spaces.GPU
|
| 5 |
+
def echo(x: str) -> str:
|
| 6 |
+
# A trivial GPU-decorated function to satisfy ZeroGPU requirement
|
| 7 |
+
return f"✅ Works! You said: {x}"
|
| 8 |
|
| 9 |
demo = gr.Interface(fn=echo, inputs="text", outputs="text")
|
| 10 |
demo.launch()
|