Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
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"
|