""" 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 + "!!" | |
iface = gr.Interface(fn=greet, inputs="text", outputs="text") | |
iface.launch() | |
# some comment |