update the code
Browse files
app.py
CHANGED
@@ -68,8 +68,8 @@ def extract_terms_from_contract(contract_text):
|
|
68 |
n=1,
|
69 |
stop=None,
|
70 |
temperature=0.1,
|
71 |
-
|
72 |
-
|
73 |
except Exception as e:
|
74 |
st.error(f"Error extracting terms from contract: {e}")
|
75 |
return None
|
|
|
68 |
n=1,
|
69 |
stop=None,
|
70 |
temperature=0.1,
|
71 |
+
)
|
72 |
+
return response.choices[0].message.content
|
73 |
except Exception as e:
|
74 |
st.error(f"Error extracting terms from contract: {e}")
|
75 |
return None
|