metrics / app.py
asjad321's picture
added type
3219310 verified
raw
history blame contribute delete
685 Bytes
import utils
import gradio as gr
import parameters
with gr.Blocks(title="Opik Error Dashboard") as demo:
gr.Markdown("# Error Metrics Dashboard")
with gr.Row():
project = gr.Textbox(value=parameters.project, interactive=True)
start_date = gr.Textbox(label="Start Date (YYYY-MM-DD)", value="2025-02-20")
end_date = gr.Textbox(label="End Date (YYYY-MM-DD)", value="2025-02-21")
submit_btn = gr.Button("Process")
output = gr.HTML(label="Results", min_height="200px")
submit_btn.click(
fn=utils.process_dates,
inputs=[start_date, end_date, project],
outputs=output
)
demo.launch(share=True)