Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -410,7 +410,11 @@ if st.button("Generate Patent Insights"):
|
|
410 |
start_time = time.time()
|
411 |
|
412 |
# Kick off the crew with user inputs
|
413 |
-
|
|
|
|
|
|
|
|
|
414 |
|
415 |
# Calculate elapsed time
|
416 |
elapsed_time = time.time() - start_time
|
|
|
410 |
start_time = time.time()
|
411 |
|
412 |
# Kick off the crew with user inputs
|
413 |
+
if not patent_area or not stakeholder:
|
414 |
+
st.error("Please provide both Patent Technology Area and Stakeholder.")
|
415 |
+
else:
|
416 |
+
results = crew.kickoff(inputs={"topic": patent_area, "stakeholder": stakeholder})
|
417 |
+
|
418 |
|
419 |
# Calculate elapsed time
|
420 |
elapsed_time = time.time() - start_time
|