chris-rannou's picture
chris-rannou HF Staff
Update app.py
9576a59 verified
raw
history blame contribute delete
378 Bytes
""" App
"""
import gradio as gr
import time
import os
# useless comment 1
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")
#comment
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()