Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ from groq import Groq
|
|
| 2 |
import streamlit as st
|
| 3 |
from openai import OpenAI
|
| 4 |
import json
|
|
|
|
| 5 |
import streamlit.components.v1 as components
|
| 6 |
import requests
|
| 7 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
@@ -20,6 +21,9 @@ from embedchain.config import BaseLlmConfig
|
|
| 20 |
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
|
| 21 |
generate)
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
client_groq = Groq(api_key=os.getenv('GROQ_API_KEY'))
|
| 24 |
client_openai = OpenAI(api_key=os.getenv('OPENA_AI_API_KEY'))
|
| 25 |
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from openai import OpenAI
|
| 4 |
import json
|
| 5 |
+
from dotenv import load_dotenv
|
| 6 |
import streamlit.components.v1 as components
|
| 7 |
import requests
|
| 8 |
from youtube_transcript_api import YouTubeTranscriptApi
|
|
|
|
| 21 |
from embedchain.helpers.callbacks import (StreamingStdOutCallbackHandlerYield,
|
| 22 |
generate)
|
| 23 |
|
| 24 |
+
def configure():
|
| 25 |
+
load_dotenv()
|
| 26 |
+
|
| 27 |
client_groq = Groq(api_key=os.getenv('GROQ_API_KEY'))
|
| 28 |
client_openai = OpenAI(api_key=os.getenv('OPENA_AI_API_KEY'))
|
| 29 |
|