Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -1
src/streamlit_app.py
CHANGED
|
@@ -17,7 +17,8 @@ class AnalyzeProjectRequirement(BaseTool):
|
|
| 17 |
|
| 18 |
def run(self) -> str:
|
| 19 |
"""Analyze project and store results in shared state"""
|
| 20 |
-
if self._shared_state.get("
|
|
|
|
| 21 |
|
| 22 |
analysis= {
|
| 23 |
"name": self.project_name,
|
|
|
|
| 17 |
|
| 18 |
def run(self) -> str:
|
| 19 |
"""Analyze project and store results in shared state"""
|
| 20 |
+
if self._shared_state.get("project_analysis", None) is not None:
|
| 21 |
+
raise ValueError("project Analysis already exists, you can move forward to technical specification.")
|
| 22 |
|
| 23 |
analysis= {
|
| 24 |
"name": self.project_name,
|