karthikeyan-r commited on
Commit
9b835c0
1 Parent(s): 2cd6d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -448,17 +448,16 @@ if selected_main_option == "Dashboard":
448
 
449
  # Contract Generator
450
  elif button_value == 'Contract Generator':
451
- confirmationGen = Modal("Contract Generator", key= "contract_gen")
452
  get_response=''
453
  contract_info=st.text_input("Enter Contract info")
454
- if contract_info!='':
455
  conversation = [{"role": "system", "content": """You are a helpful assistant. Your task is creating a complete contract with important terms and condiations based on the contract information and type.
456
  the contract type given by user.
457
  generate a contract :
458
  """},
459
  {"role": "user", "content": f"```content: {contract_info}```"}]
460
  get_response = openai.get_response(conversation)
461
-
462
  if get_response == ['', None]:
463
  st.toast("No Result is founded.")
464
  else:
 
448
 
449
  # Contract Generator
450
  elif button_value == 'Contract Generator':
451
+ confirmationGen = Modal("Contract Generator", key= "contract_gen1")
452
  get_response=''
453
  contract_info=st.text_input("Enter Contract info")
454
+ if contract_info not in None:
455
  conversation = [{"role": "system", "content": """You are a helpful assistant. Your task is creating a complete contract with important terms and condiations based on the contract information and type.
456
  the contract type given by user.
457
  generate a contract :
458
  """},
459
  {"role": "user", "content": f"```content: {contract_info}```"}]
460
  get_response = openai.get_response(conversation)
 
461
  if get_response == ['', None]:
462
  st.toast("No Result is founded.")
463
  else: