linx5o commited on
Commit
69fee00
1 Parent(s): 9fa6d0c

remove unused show_image function and directly display Pioreactor image in the interface

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -776,8 +776,6 @@ def get_data_default(time_scale, exp):
776
  return plot1, plot2, plot3, plot4
777
 
778
 
779
- def show_image():
780
- return "pioreactor.webp"
781
 
782
  # Define the interface components
783
  with gr.Blocks() as demo:
@@ -793,11 +791,7 @@ with gr.Blocks() as demo:
793
  """)
794
  gr.Markdown("This is a control panel for the [Pioreactor](https://pioreactor.com/en-ca). You can use this to control the Pioreactor. You can also view the status of the Pioreactor and view graphs of the data. To use a custom Pioreactor, click on the Custom tab.")
795
 
796
- gr.Interface(
797
- fn=show_image,
798
- inputs=None,
799
- outputs=gr.Image(type="filepath")
800
- ).launch()
801
 
802
 
803
  gr.Markdown("The experiment name is required for all commands. You can get the experiment name from the status tab. When changing experiments, remember to update the experiment name.")
 
776
  return plot1, plot2, plot3, plot4
777
 
778
 
 
 
779
 
780
  # Define the interface components
781
  with gr.Blocks() as demo:
 
791
  """)
792
  gr.Markdown("This is a control panel for the [Pioreactor](https://pioreactor.com/en-ca). You can use this to control the Pioreactor. You can also view the status of the Pioreactor and view graphs of the data. To use a custom Pioreactor, click on the Custom tab.")
793
 
794
+ gr.Image("pioreactor.webp")
 
 
 
 
795
 
796
 
797
  gr.Markdown("The experiment name is required for all commands. You can get the experiment name from the status tab. When changing experiments, remember to update the experiment name.")