DrishtiSharma commited on
Commit
368c5c2
·
verified ·
1 Parent(s): ca175cc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- results = crew.kickoff(inputs={"topic": patent_area, "stakeholder": stakeholder})
 
 
 
 
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