Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,8 @@ import streamlit as st
|
|
2 |
from bs4 import BeautifulSoup
|
3 |
import requests
|
4 |
from groq import Groq
|
5 |
-
|
|
|
6 |
class Website:
|
7 |
|
8 |
def __init__(self, url):
|
@@ -18,7 +19,7 @@ class Website:
|
|
18 |
self.text = soup.body.get_text(separator="\n", strip=True)
|
19 |
|
20 |
# Initialize Groq client
|
21 |
-
api_key =
|
22 |
client = Groq(api_key=api_key)
|
23 |
|
24 |
# Streamlit UI
|
|
|
2 |
from bs4 import BeautifulSoup
|
3 |
import requests
|
4 |
from groq import Groq
|
5 |
+
import os
|
6 |
+
from dotenv import load_env
|
7 |
class Website:
|
8 |
|
9 |
def __init__(self, url):
|
|
|
19 |
self.text = soup.body.get_text(separator="\n", strip=True)
|
20 |
|
21 |
# Initialize Groq client
|
22 |
+
api_key = os.getenv('GROQ_API_KEY')
|
23 |
client = Groq(api_key=api_key)
|
24 |
|
25 |
# Streamlit UI
|