File size: 412 Bytes
c684a3f
 
 
051bdea
 
59db64f
e1090b1
00b3c6f
051bdea
c684a3f
 
 
 
 
 
 
 
 
 
 
5197084
24bdecb
051bdea
c684a3f
 
91d10a9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
""" 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