Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,6 +5,10 @@ import streamlit as st
|
|
| 5 |
from sentence_transformers import SentenceTransformer
|
| 6 |
from scrapegraphai.graphs import SmartScraperMultiGraph
|
| 7 |
from langchain_groq import ChatGroq
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
import subprocess
|
| 10 |
|
|
@@ -19,7 +23,7 @@ model = SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2")
|
|
| 19 |
st.title("Course Scraper from Analytics Vidhya")
|
| 20 |
|
| 21 |
# API Key Input
|
| 22 |
-
api_key = st.text_input("Enter your API Key:", type="password")
|
| 23 |
|
| 24 |
# Prompt Input
|
| 25 |
user_prompt = st.text_input("Enter your prompt for scraping:")
|
|
|
|
| 5 |
from sentence_transformers import SentenceTransformer
|
| 6 |
from scrapegraphai.graphs import SmartScraperMultiGraph
|
| 7 |
from langchain_groq import ChatGroq
|
| 8 |
+
import os
|
| 9 |
+
from dotenv import load_dotenv
|
| 10 |
+
load_dotenv()
|
| 11 |
+
api_key=os.getenv("GROQ_API_KEY")
|
| 12 |
|
| 13 |
import subprocess
|
| 14 |
|
|
|
|
| 23 |
st.title("Course Scraper from Analytics Vidhya")
|
| 24 |
|
| 25 |
# API Key Input
|
| 26 |
+
#api_key = st.text_input("Enter your API Key:", type="password")
|
| 27 |
|
| 28 |
# Prompt Input
|
| 29 |
user_prompt = st.text_input("Enter your prompt for scraping:")
|