Spaces:
Runtime error
Runtime error
""" App | |
""" | |
import gradio as gr | |
import time | |
import os | |
MB = 1024*1024 | |
def eat_memory(): | |
mem = [] | |
while True: | |
mem += ['c' * (100 * MB)] | |
time.sleep(0.1) | |
def greet(name): | |
return "Hello " + name + ", secret: " + os.environ.get("TEST_ENV_SECRET") | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch(share=True) | |