Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -100,11 +100,11 @@ def generate_responses(user_message, p_hist, c_hist):
|
|
| 100 |
c_hist[-1]["content"] = f"Competitor Error: {str(e)}"
|
| 101 |
yield p_hist, c_hist, ""
|
| 102 |
|
| 103 |
-
# 4. Interface Build
|
| 104 |
custom_css = """
|
| 105 |
body, .gradio-container { background-color: #110c08 !important; color: #fb923c !important; }
|
| 106 |
footer { display: none !important; }
|
| 107 |
-
.scrollable-examples { max-height:
|
| 108 |
"""
|
| 109 |
|
| 110 |
example_prompts = [
|
|
@@ -112,17 +112,7 @@ example_prompts = [
|
|
| 112 |
["Calculate the integer distribution for 50000 units across 12 nodes."],
|
| 113 |
["Define P vs. NP. Then validate a 120-unit distribution across 3 nodes."],
|
| 114 |
["Execute a Tier-3 Distribution Audit for 8593 units across 14 nodes."],
|
| 115 |
-
["Distribute 1000000 units across 7 nodes."]
|
| 116 |
-
["Perform a hardware grid initialization and diagnostic check."],
|
| 117 |
-
["Allocate exactly 2048 units across 16 nodes for cluster balancing."],
|
| 118 |
-
["Explain the theory of relativity. Then process 999 units across 9 nodes."],
|
| 119 |
-
["Run a full system diagnostic on the logical array."],
|
| 120 |
-
["Load balance 123456789 units across 256 nodes."],
|
| 121 |
-
["Draft an email to the logistics team. Then route 400 units across 5 nodes."],
|
| 122 |
-
["Initialize grid memory matrix and verify logic gate alignment."],
|
| 123 |
-
["Evaluate node efficiency for 7777 units across 11 nodes."],
|
| 124 |
-
["Distribute 88 units across 3 nodes."],
|
| 125 |
-
["Explain how standard AI struggles with deterministic mathematical verification."] # Cloud trap for baseline comparison
|
| 126 |
]
|
| 127 |
|
| 128 |
with gr.Blocks() as demo:
|
|
@@ -133,11 +123,12 @@ with gr.Blocks() as demo:
|
|
| 133 |
msg_in = gr.Textbox(label="Message", placeholder="Test P vs NP or Logistics Distribution...", scale=8)
|
| 134 |
submit_btn = gr.Button("Execute", scale=1, variant="primary")
|
| 135 |
|
|
|
|
| 136 |
gr.Examples(
|
| 137 |
examples=example_prompts,
|
| 138 |
inputs=msg_in,
|
| 139 |
elem_classes="scrollable-examples",
|
| 140 |
-
label="Diagnostic Test Suite
|
| 141 |
)
|
| 142 |
|
| 143 |
c_chat = gr.Chatbot(label="Vanilla Qwen 2.5 (Standard Infrastructure)", height=350)
|
|
|
|
| 100 |
c_hist[-1]["content"] = f"Competitor Error: {str(e)}"
|
| 101 |
yield p_hist, c_hist, ""
|
| 102 |
|
| 103 |
+
# 4. Interface Build (With True Scrollable CSS)
|
| 104 |
custom_css = """
|
| 105 |
body, .gradio-container { background-color: #110c08 !important; color: #fb923c !important; }
|
| 106 |
footer { display: none !important; }
|
| 107 |
+
.scrollable-examples { max-height: 140px; overflow-y: auto; }
|
| 108 |
"""
|
| 109 |
|
| 110 |
example_prompts = [
|
|
|
|
| 112 |
["Calculate the integer distribution for 50000 units across 12 nodes."],
|
| 113 |
["Define P vs. NP. Then validate a 120-unit distribution across 3 nodes."],
|
| 114 |
["Execute a Tier-3 Distribution Audit for 8593 units across 14 nodes."],
|
| 115 |
+
["Distribute 1000000 units across 7 nodes."]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
]
|
| 117 |
|
| 118 |
with gr.Blocks() as demo:
|
|
|
|
| 123 |
msg_in = gr.Textbox(label="Message", placeholder="Test P vs NP or Logistics Distribution...", scale=8)
|
| 124 |
submit_btn = gr.Button("Execute", scale=1, variant="primary")
|
| 125 |
|
| 126 |
+
# Removed pagination, added physical scroll via CSS class
|
| 127 |
gr.Examples(
|
| 128 |
examples=example_prompts,
|
| 129 |
inputs=msg_in,
|
| 130 |
elem_classes="scrollable-examples",
|
| 131 |
+
label="Diagnostic Test Suite"
|
| 132 |
)
|
| 133 |
|
| 134 |
c_chat = gr.Chatbot(label="Vanilla Qwen 2.5 (Standard Infrastructure)", height=350)
|