Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,14 @@ groq_client = groq.Client(api_key=api_key)
|
|
| 16 |
def call_groq_api(prompt):
|
| 17 |
try:
|
| 18 |
response = groq_client.chat.completions.create(
|
| 19 |
-
model="
|
| 20 |
messages=[
|
| 21 |
{"role": "user", "content": prompt}
|
| 22 |
]
|
| 23 |
)
|
| 24 |
return response.choices[0].message.content
|
| 25 |
except Exception as err:
|
|
|
|
| 26 |
return f"Error: {err}"
|
| 27 |
|
| 28 |
# Function to analyze a single requirement
|
|
@@ -127,7 +128,7 @@ def generate_pdf_report(results):
|
|
| 127 |
def main():
|
| 128 |
st.title("AI Powered Requirement Analysis and Defect Detection using Large Language Model LLaMA")
|
| 129 |
st.markdown("**Team Name:** Sadia, Areeba, Rabbia, Tesmia")
|
| 130 |
-
st.markdown("**Model:** LLaMA")
|
| 131 |
|
| 132 |
# Input requirements manually
|
| 133 |
input_text = st.text_area("Enter your requirements (one per line or separated by periods):")
|
|
|
|
| 16 |
def call_groq_api(prompt):
|
| 17 |
try:
|
| 18 |
response = groq_client.chat.completions.create(
|
| 19 |
+
model="llama-3.3-70b-versatile", # Correct model name
|
| 20 |
messages=[
|
| 21 |
{"role": "user", "content": prompt}
|
| 22 |
]
|
| 23 |
)
|
| 24 |
return response.choices[0].message.content
|
| 25 |
except Exception as err:
|
| 26 |
+
st.error(f"Error: {err}")
|
| 27 |
return f"Error: {err}"
|
| 28 |
|
| 29 |
# Function to analyze a single requirement
|
|
|
|
| 128 |
def main():
|
| 129 |
st.title("AI Powered Requirement Analysis and Defect Detection using Large Language Model LLaMA")
|
| 130 |
st.markdown("**Team Name:** Sadia, Areeba, Rabbia, Tesmia")
|
| 131 |
+
st.markdown("**Model:** LLaMA-3.3-70b-Versatile")
|
| 132 |
|
| 133 |
# Input requirements manually
|
| 134 |
input_text = st.text_area("Enter your requirements (one per line or separated by periods):")
|