0num4 commited on
Commit
4a75c30
1 Parent(s): 1522a25

feat: update

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -1,10 +1,12 @@
1
  import gradio as gr # type: ignore
 
2
 
3
 
4
  def greet(name, sliderint):
5
  return "Hellonyaaaaa " + name + "!!" + str(sliderint)
6
 
7
 
 
8
  def chatinterface_fn(message, history):
9
  return f"{message} return"
10
 
 
1
  import gradio as gr # type: ignore
2
+ import spaces # type: ignore
3
 
4
 
5
  def greet(name, sliderint):
6
  return "Hellonyaaaaa " + name + "!!" + str(sliderint)
7
 
8
 
9
+ @spaces.GPU(duration=45)
10
  def chatinterface_fn(message, history):
11
  return f"{message} return"
12