WHG2023
commited on
Commit
·
54dd993
1
Parent(s):
b938a37
fix: Improve security and UI stability
Browse files- app.py +1 -1
- real_ai_agents_implementation.py +1 -1
app.py
CHANGED
|
@@ -286,7 +286,7 @@ with gr.Blocks(theme=gr.themes.Base(primary_hue="green", neutral_hue="slate"), t
|
|
| 286 |
</h2>
|
| 287 |
</div>
|
| 288 |
""")
|
| 289 |
-
negotiation_display = gr.
|
| 290 |
|
| 291 |
with gr.Column(scale=1, min_width=300):
|
| 292 |
# --- SIDEBAR: STATUS & DELIVERABLES ---
|
|
|
|
| 286 |
</h2>
|
| 287 |
</div>
|
| 288 |
""")
|
| 289 |
+
negotiation_display = gr.Markdown("The agent negotiation log will appear here once you begin.")
|
| 290 |
|
| 291 |
with gr.Column(scale=1, min_width=300):
|
| 292 |
# --- SIDEBAR: STATUS & DELIVERABLES ---
|
real_ai_agents_implementation.py
CHANGED
|
@@ -272,7 +272,7 @@ class FigureDrafterAgent(BaseAgent):
|
|
| 272 |
|
| 273 |
class SegmindIdeogramAgent:
|
| 274 |
def __init__(self):
|
| 275 |
-
self.api_key = os.getenv("SEGMIND_API_KEY"
|
| 276 |
self.url = "https://api.segmind.com/v1/ideogram-3"
|
| 277 |
|
| 278 |
def generate_image(self, technical_summary: str, strategic_mandate: str) -> Optional[str]:
|
|
|
|
| 272 |
|
| 273 |
class SegmindIdeogramAgent:
|
| 274 |
def __init__(self):
|
| 275 |
+
self.api_key = os.getenv("SEGMIND_API_KEY") # Use user's key as default
|
| 276 |
self.url = "https://api.segmind.com/v1/ideogram-3"
|
| 277 |
|
| 278 |
def generate_image(self, technical_summary: str, strategic_mandate: str) -> Optional[str]:
|