Spaces:
Running
Running
Update PolyAgent/gradio_interface.py
Browse files
PolyAgent/gradio_interface.py
CHANGED
|
@@ -84,6 +84,19 @@ DEFAULT_TARGET_BY_PROPERTY = {
|
|
| 84 |
# Run instructions bubble
|
| 85 |
# -----------------------------------------------------------------------------
|
| 86 |
RUN_INSTRUCTIONS_MD = (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
"### How to use PolyAgent\n"
|
| 88 |
"\n"
|
| 89 |
"PolyAgent is a web app with three **Tabs** at the top:\n"
|
|
@@ -1304,7 +1317,7 @@ def build_ui() -> gr.Blocks:
|
|
| 1304 |
with gr.Column(scale=1):
|
| 1305 |
gr.Markdown("### PolyAgent Answer")
|
| 1306 |
final_answer = gr.Markdown("PolyAgent will respond here with a single structured answer.")
|
| 1307 |
-
gr.Markdown("### PNG Artifacts
|
| 1308 |
ev_imgs = gr.Gallery(label="", columns=3, height=260)
|
| 1309 |
|
| 1310 |
btn_run.click(
|
|
|
|
| 84 |
# Run instructions bubble
|
| 85 |
# -----------------------------------------------------------------------------
|
| 86 |
RUN_INSTRUCTIONS_MD = (
|
| 87 |
+
"### PolyAgent\n"
|
| 88 |
+
"\n"
|
| 89 |
+
"**This Space is running in a free, CPU-only environment.** That means:\n"
|
| 90 |
+
"- **Higher latency is expected** for model-heavy steps (encoding, property prediction, inverse design, retrieval).\n"
|
| 91 |
+
"- **Cold starts** can occur after inactivity (the container spins down), so the first request may take longer.\n"
|
| 92 |
+
"- Some operations are **compute-bound** on CPU (Transformer/graph/3D encoders), so throughput is limited compared to GPU.\n"
|
| 93 |
+
"\n"
|
| 94 |
+
"**Scaling note:** If usage grows, this deployment can be migrated to a **GPU-backed runtime** (and/or a queued worker setup)\n"
|
| 95 |
+
"to reduce per-request latency and improve concurrency. The app is designed to be **hardware-agnostic**—the same workflow\n"
|
| 96 |
+
"runs on CPU today and can be accelerated on GPU later with minimal code changes.\n"
|
| 97 |
+
"\n"
|
| 98 |
+
"---\n"
|
| 99 |
+
"\n"
|
| 100 |
"### How to use PolyAgent\n"
|
| 101 |
"\n"
|
| 102 |
"PolyAgent is a web app with three **Tabs** at the top:\n"
|
|
|
|
| 1317 |
with gr.Column(scale=1):
|
| 1318 |
gr.Markdown("### PolyAgent Answer")
|
| 1319 |
final_answer = gr.Markdown("PolyAgent will respond here with a single structured answer.")
|
| 1320 |
+
gr.Markdown("### PNG Artifacts")
|
| 1321 |
ev_imgs = gr.Gallery(label="", columns=3, height=260)
|
| 1322 |
|
| 1323 |
btn_run.click(
|