File size: 380 Bytes
c684a3f
 
 
051bdea
 
59db64f
e1090b1
00b3c6f
c684a3f
 
 
 
 
 
 
 
24bdecb
051bdea
9924b89
c684a3f
2c6b8b0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
""" 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):
    return "Hello " + name + "!! secret: " + os.environ.get("TEST_ENV_SECRET")

# bidule
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()