Spaces:
Runtime error
Runtime error
File size: 380 Bytes
7873945 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
from gradio_msaplot import MSAPlot, MSAPlotData
import matplotlib
matplotlib.use('Agg')
example = MSAPlot().example_value()
with gr.Blocks() as demo:
with gr.Row():
MSAPlot(label="Blank"), # blank component
MSAPlot(value=example, label="Populated"), # populated component
if __name__ == "__main__":
demo.launch()
|