Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -180,8 +180,8 @@ with gr.Blocks(theme=seafoam) as iface:
|
|
180 |
|
181 |
with gr.Row():
|
182 |
with gr.Column():
|
183 |
-
x_input = gr.Textbox(label="X values (comma-separated)")
|
184 |
-
y_input = gr.Textbox(label="Y values (comma-separated)")
|
185 |
x_predict = gr.Number(label="X value to predict (optional)", value=lambda: None)
|
186 |
method = gr.Radio(["Linear", "Quadratic", "Lagrange", "Newton Forward", "Newton Backward"], label="Interpolation Method", value="Linear")
|
187 |
submit_btn = gr.Button("Generate Plot", variant="primary", elem_id="submit-btn")
|
|
|
180 |
|
181 |
with gr.Row():
|
182 |
with gr.Column():
|
183 |
+
x_input = gr.Textbox(label="X values (comma-separated)", value="1,2,3")
|
184 |
+
y_input = gr.Textbox(label="Y values (comma-separated)", value="1,8,27")
|
185 |
x_predict = gr.Number(label="X value to predict (optional)", value=lambda: None)
|
186 |
method = gr.Radio(["Linear", "Quadratic", "Lagrange", "Newton Forward", "Newton Backward"], label="Interpolation Method", value="Linear")
|
187 |
submit_btn = gr.Button("Generate Plot", variant="primary", elem_id="submit-btn")
|