hello_TA-LIB / app.py
radames's picture
Update app.py
75e590a
raw
history blame
283 Bytes
import gradio as gr
import numpy as np
import talib
def run():
close = np.random.random(100)
output = talib.SMA(close)
return output
with gr.Blocks() as demo:
out = gr.JSON()
btn = gr.Button("Run")
btn.click(fn=run, inputs=None, outputs=out)
demo.launch()