use blue/purple theme
Browse files- folding_studio_demo/app.py +27 -4
folding_studio_demo/app.py
CHANGED
@@ -13,6 +13,7 @@ from folding_studio_demo.correlate import (
|
|
13 |
make_correlation_plot,
|
14 |
)
|
15 |
from folding_studio_demo.predict import predict, predict_comparison
|
|
|
16 |
|
17 |
logger = logging.getLogger(__name__)
|
18 |
|
@@ -102,7 +103,13 @@ def simple_prediction(api_key: str) -> None:
|
|
102 |
with gr.Column():
|
103 |
sequence = sequence_input()
|
104 |
|
105 |
-
predict_btn = gr.Button(
|
|
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
with gr.Row():
|
108 |
mol_output = Molecule3D(label="Protein Structure", reps=MOLECULE_REPS)
|
@@ -134,7 +141,13 @@ def model_comparison(api_key: str) -> None:
|
|
134 |
with gr.Column():
|
135 |
sequence = sequence_input()
|
136 |
|
137 |
-
predict_btn = gr.Button(
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
|
139 |
with gr.Row():
|
140 |
mol_outputs = Molecule3D(
|
@@ -193,7 +206,12 @@ def create_correlation_tab():
|
|
193 |
|
194 |
gr.Markdown("# Prediction and correlation")
|
195 |
with gr.Row():
|
196 |
-
fake_predict_btn = gr.Button(
|
|
|
|
|
|
|
|
|
|
|
197 |
with gr.Row():
|
198 |
prediction_dataframe = gr.Dataframe(label="Predicted Structures Data")
|
199 |
with gr.Row():
|
@@ -236,7 +254,12 @@ def create_correlation_tab():
|
|
236 |
|
237 |
|
238 |
def __main__():
|
239 |
-
|
|
|
|
|
|
|
|
|
|
|
240 |
gr.Markdown(
|
241 |
"""
|
242 |
# Folding Studio: Harness the Power of Protein Folding 🧬
|
|
|
13 |
make_correlation_plot,
|
14 |
)
|
15 |
from folding_studio_demo.predict import predict, predict_comparison
|
16 |
+
from folding_studio_demo.config import BLUE, PURPLE
|
17 |
|
18 |
logger = logging.getLogger(__name__)
|
19 |
|
|
|
103 |
with gr.Column():
|
104 |
sequence = sequence_input()
|
105 |
|
106 |
+
predict_btn = gr.Button(
|
107 |
+
"Predict",
|
108 |
+
elem_classes="gradient-button",
|
109 |
+
elem_id="predict-btn",
|
110 |
+
variant="primary",
|
111 |
+
# css=f".gradio-container #predict-btn {{background: linear-gradient(90deg, {BLUE}, {PURPLE});}}",
|
112 |
+
)
|
113 |
|
114 |
with gr.Row():
|
115 |
mol_output = Molecule3D(label="Protein Structure", reps=MOLECULE_REPS)
|
|
|
141 |
with gr.Column():
|
142 |
sequence = sequence_input()
|
143 |
|
144 |
+
predict_btn = gr.Button(
|
145 |
+
"Compare Models",
|
146 |
+
elem_classes=["gradient-button"],
|
147 |
+
elem_id="compare-models-btn",
|
148 |
+
variant="primary",
|
149 |
+
# css=f".gradio-container #compare-models-btn {{background: linear-gradient(90deg, {BLUE}, {PURPLE});}}"
|
150 |
+
)
|
151 |
|
152 |
with gr.Row():
|
153 |
mol_outputs = Molecule3D(
|
|
|
206 |
|
207 |
gr.Markdown("# Prediction and correlation")
|
208 |
with gr.Row():
|
209 |
+
fake_predict_btn = gr.Button(
|
210 |
+
"Predict structures of all complexes",
|
211 |
+
elem_classes="gradient-button",
|
212 |
+
variant="primary",
|
213 |
+
# css=f".gradio-container #fake-predict-btn {{background: linear-gradient(90deg, {BLUE}, {PURPLE});}}",
|
214 |
+
)
|
215 |
with gr.Row():
|
216 |
prediction_dataframe = gr.Dataframe(label="Predicted Structures Data")
|
217 |
with gr.Row():
|
|
|
254 |
|
255 |
|
256 |
def __main__():
|
257 |
+
|
258 |
+
theme = gr.themes.Ocean(
|
259 |
+
primary_hue="blue",
|
260 |
+
secondary_hue="purple",
|
261 |
+
)
|
262 |
+
with gr.Blocks(theme=theme, title="Folding Studio Demo") as demo:
|
263 |
gr.Markdown(
|
264 |
"""
|
265 |
# Folding Studio: Harness the Power of Protein Folding 🧬
|