test-tcp / app.py
chris-rannou's picture
chris-rannou HF staff
Update app.py
b591254
raw
history blame
412 Bytes
""" App
"""
import gradio as gr
import time
import os
import elasticsearch
MB = 1024*1024
def eat_memory():
mem = []
while True:
mem += ['c' * (100 * MB)]
time.sleep(0.1)
def greet(name):
# some comments 3
return "Hello " + name + "!! secret: " + os.environ.get("TEST_ENV_SECRET")
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
# some comment