test-private-2 / app.py
chris-rannou's picture
chris-rannou HF Staff
Update app.py
17c5e5e verified
raw
history blame contribute delete
339 Bytes
""" App
"""
import gradio as gr
import time
import os
import spaces
MB = 1024*1024
def eat_memory():
mem = []
while True:
mem += ['c' * (100 * MB)]
time.sleep(0.1)
@spaces.GPU
def greet(name):
return "Hello there {}".format(name)
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()