File size: 646 Bytes
5152fab
9492e32
 
 
 
 
 
 
 
 
 
 
 
 
 
2e905cb
9492e32
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
import pandas as pd
import matplotlib.pyplot as plt
from analysis_db import read_db


def plot_pens(alpha):
    df_pens = pd.read_csv('https://raw.githubusercontent.com/mwaskom/seaborn-data/master/penguins.csv')
    fig = plt.figure()
    plt.scatter(x=df_pens['bill_length_mm'], y=df_pens['bill_depth_mm'])
    return fig

iface = gr.Interface(
    fn=read_db,
    inputs=['file'],
    outputs=['plot', 'plot', 'plot', 'plot', 'plot', 'plot', 'plot', 'plot', 'plot', 'plot'],
    title="Sleep Data test",
    description="Let's talk pens.",
    article="Talk more about Penguins here, shall we?",
    theme='peach'
).launch()