hello_TA-LIB / app.py
radames's picture
Update app.py
3186b06
raw
history blame
457 Bytes
import gradio as gr
import numpy as np
import talib
def update(name):
close = np.random.random(100)
output = talib.SMA(close)
return output
with gr.Blocks() as demo:
gr.Markdown("Start typing below and then click **Run** to see the output.")
with gr.Row():
inp = gr.Textbox(placeholder="What is your name?")
out = gr.Textbox()
btn = gr.Button("Run")
btn.click(fn=update, inputs=inp, outputs=out)
demo.launch()