Spaces:
Runtime error
Runtime error
added link to example workflow
Browse files
app.py
CHANGED
|
@@ -8,9 +8,7 @@ import numpy as np
|
|
| 8 |
import datetime
|
| 9 |
import pytz
|
| 10 |
import pandas as pd
|
| 11 |
-
|
| 12 |
-
import plotly.io as pio
|
| 13 |
-
import plotly.graph_objects as go
|
| 14 |
|
| 15 |
HOST = os.environ.get("host")
|
| 16 |
PORT = int(os.environ.get("port"))
|
|
@@ -948,6 +946,17 @@ with gr.Blocks() as demo:
|
|
| 948 |
fn=cycle_media_default,
|
| 949 |
inputs=[cycle_media_sec, experiment_input]
|
| 950 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 951 |
|
| 952 |
with gr.Tab("Default Graphs"):
|
| 953 |
with gr.Row():
|
|
|
|
| 8 |
import datetime
|
| 9 |
import pytz
|
| 10 |
import pandas as pd
|
| 11 |
+
|
|
|
|
|
|
|
| 12 |
|
| 13 |
HOST = os.environ.get("host")
|
| 14 |
PORT = int(os.environ.get("port"))
|
|
|
|
| 946 |
fn=cycle_media_default,
|
| 947 |
inputs=[cycle_media_sec, experiment_input]
|
| 948 |
)
|
| 949 |
+
|
| 950 |
+
with gr.Blocks():
|
| 951 |
+
gr.Markdown("# Example workflow")
|
| 952 |
+
|
| 953 |
+
gr.HTML("""
|
| 954 |
+
<a target="_blank" href="https://colab.research.google.com/github/AccelerationConsortium/ac-training-lab/blob/51-pioreactor-mqtt-and-streamlit/notebooks/Pioreactor_Example_Workflow.ipynb">
|
| 955 |
+
<img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/>
|
| 956 |
+
</a>
|
| 957 |
+
""")
|
| 958 |
+
|
| 959 |
+
gr.Markdown("This is an example workflow that demonstrates how to use the Pioreactor MQTT API.")
|
| 960 |
|
| 961 |
with gr.Tab("Default Graphs"):
|
| 962 |
with gr.Row():
|