|
import gradio as gr |
|
import matplotlib |
|
|
|
|
|
|
|
import matplotlib.pyplot as plt |
|
|
|
|
|
|
|
|
|
|
|
def outbreak(plot_type, r, month, countries, social_distancing): |
|
return " 145 Fcfa/ for 2Kg" |
|
|
|
|
|
inputs = [ |
|
gr.Dropdown(["Matplotlib", "Plotly", "Altair"], label="Plot Type"), |
|
gr.Dropdown(["January", "February", "March", "April", "May"], label="Month"), |
|
gr.Dropdown(["January", "February", "March", "April", "May"], label="Month"), |
|
gr.Dropdown(["January", "February", "March", "April", "May"], label="Month"), |
|
gr.Dropdown(["January", "February", "March", "April", "May"], label="Month"), |
|
] |
|
outputs = "label" |
|
|
|
demo = gr.Interface( |
|
fn=outbreak, |
|
inputs=inputs, |
|
outputs=outputs, |
|
|
|
|
|
|
|
|
|
|
|
cache_examples=True, |
|
) |
|
|
|
if __name__ == "__main__": |
|
demo.launch() |
|
|