nashjiwani commited on
Commit
42b42e0
·
verified ·
1 Parent(s): 4d664c8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -1,6 +1,10 @@
1
  import gradio as gr
 
2
 
3
- def echo(x): return f"✅ Works! You said: {x}"
 
 
 
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()