devendergarg14 commited on
Commit
567a44d
·
verified ·
1 Parent(s): cdd703d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -1,14 +1,8 @@
1
  import gradio as gr
2
- from gradio.themes.base import Base
3
  import numpy as np
4
  import matplotlib.pyplot as plt
5
 
6
 
7
- class Seafoam(Base):
8
- pass
9
-
10
- seafoam = Seafoam()
11
-
12
  def create_error_plot(error_message):
13
  fig, ax = plt.subplots(figsize=(10, 6))
14
  ax.text(0.5, 0.5, error_message, color='red', fontsize=16, ha='center', va='center', wrap=True)
@@ -173,7 +167,7 @@ def interpolate_and_plot(x_input, y_input, x_predict, method, plot_title, x_labe
173
  def toggle_plot_options(show_options):
174
  return not show_options, gr.update(visible=not show_options)
175
 
176
- with gr.Blocks(theme=seafoam) as iface:
177
  #gr.Markdown("# Interpolation App")
178
  gr.Markdown('<h1 style="text-align:center;">Interpolation App</h1>')
179
  gr.Markdown("Enter x and y values to see the interpolation graph")
 
1
  import gradio as gr
 
2
  import numpy as np
3
  import matplotlib.pyplot as plt
4
 
5
 
 
 
 
 
 
6
  def create_error_plot(error_message):
7
  fig, ax = plt.subplots(figsize=(10, 6))
8
  ax.text(0.5, 0.5, error_message, color='red', fontsize=16, ha='center', va='center', wrap=True)
 
167
  def toggle_plot_options(show_options):
168
  return not show_options, gr.update(visible=not show_options)
169
 
170
+ with gr.Blocks(theme=gr.themes.Base()) as iface:
171
  #gr.Markdown("# Interpolation App")
172
  gr.Markdown('<h1 style="text-align:center;">Interpolation App</h1>')
173
  gr.Markdown("Enter x and y values to see the interpolation graph")