MadMarx37 commited on
Commit
6a18089
·
verified ·
1 Parent(s): 87b746b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -1,14 +1,9 @@
1
  import requests
2
  import streamlit as st
3
  from together import Together
4
- import os
5
- from dotenv import load_dotenv
6
-
7
- load_dotenv()
8
 
9
  # Initialize Together AI client
10
- TOGETHER_API_KEY = os.getenv("TOGETHER_API_KEY")
11
- client = Together(api_key=TOGETHER_API_KEY)
12
 
13
  def call_llama_for_response(clauses_data):
14
  prompt = "As an AI assistant specializing in contract analysis, draft a professional and courteous response to a contract drafter based on the following clause analyses and decisions:\n\n"
 
1
  import requests
2
  import streamlit as st
3
  from together import Together
 
 
 
 
4
 
5
  # Initialize Together AI client
6
+ client = Together(api_key=st.secrets["TOGETHER_API_KEY"])
 
7
 
8
  def call_llama_for_response(clauses_data):
9
  prompt = "As an AI assistant specializing in contract analysis, draft a professional and courteous response to a contract drafter based on the following clause analyses and decisions:\n\n"