chris-rannou HF Staff commited on
Commit
17c5e5e
·
verified ·
1 Parent(s): 18b809e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -4,6 +4,7 @@
4
  import gradio as gr
5
  import time
6
  import os
 
7
 
8
  MB = 1024*1024
9
  def eat_memory():
@@ -12,6 +13,7 @@ def eat_memory():
12
  mem += ['c' * (100 * MB)]
13
  time.sleep(0.1)
14
 
 
15
  def greet(name):
16
  return "Hello there {}".format(name)
17
 
 
4
  import gradio as gr
5
  import time
6
  import os
7
+ import spaces
8
 
9
  MB = 1024*1024
10
  def eat_memory():
 
13
  mem += ['c' * (100 * MB)]
14
  time.sleep(0.1)
15
 
16
+ @spaces.GPU
17
  def greet(name):
18
  return "Hello there {}".format(name)
19