Spaces:
Sleeping
Sleeping
import gradio as gr | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def plot_graph(x_values, y_values, optional1='', optional2='', optional3='', optional4='', optional5='', optional6='', optional7='', optional8='', optional9='', optional10=''): | |
plt.plot(x_values, y_values) | |
plt.title('Graph') | |
plt.xlabel('X-axis') | |
plt.ylabel('Y-axis') | |
plt.show() | |
inputs = [ | |
gr.Textbox(label="X Values"), | |
gr.Textbox(label="Y Values") | |
] | |
gr.Interface(plot_graph, inputs, "image").launch() | |