Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +3 -3
src/streamlit_app.py
CHANGED
|
@@ -28,9 +28,9 @@ def load_text(url):
|
|
| 28 |
st.error(f"Error loading URL: {e}")
|
| 29 |
return None
|
| 30 |
|
| 31 |
-
# Function to summarize text using Llama 3
|
| 32 |
def summarize_text(url):
|
| 33 |
-
"""Summarize the content from the given URL using Llama 3
|
| 34 |
text = load_text(url)
|
| 35 |
if not text:
|
| 36 |
return None
|
|
@@ -53,7 +53,7 @@ SUMMARY:
|
|
| 53 |
"Content-Type": "application/json"
|
| 54 |
},
|
| 55 |
data=json.dumps({
|
| 56 |
-
"model": "
|
| 57 |
"messages": [
|
| 58 |
{
|
| 59 |
"role": "user",
|
|
|
|
| 28 |
st.error(f"Error loading URL: {e}")
|
| 29 |
return None
|
| 30 |
|
| 31 |
+
# Function to summarize text using Llama 3 70B via Groq API
|
| 32 |
def summarize_text(url):
|
| 33 |
+
"""Summarize the content from the given URL using Llama 3 70B via Groq API"""
|
| 34 |
text = load_text(url)
|
| 35 |
if not text:
|
| 36 |
return None
|
|
|
|
| 53 |
"Content-Type": "application/json"
|
| 54 |
},
|
| 55 |
data=json.dumps({
|
| 56 |
+
"model": "llama3-70b-8192", # Working Llama model on Groq
|
| 57 |
"messages": [
|
| 58 |
{
|
| 59 |
"role": "user",
|