Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
import streamlit as st
|
2 |
import os
|
|
|
3 |
import PyPDF2
|
4 |
import torch
|
5 |
from transformers import AutoTokenizer, AutoModel
|
@@ -8,6 +8,9 @@ from langchain.chains import ConversationChain
|
|
8 |
from langchain.llms import OpenAI
|
9 |
from langchain.embeddings import HuggingFaceEmbeddings
|
10 |
|
|
|
|
|
|
|
11 |
# Set up the title and LinkedIn link
|
12 |
st.markdown("### Engr. Hamesh Raj")
|
13 |
st.markdown("[Engr. Hamesh Raj](https://www.linkedin.com/in/datascientisthameshraj/)")
|
|
|
|
|
1 |
import os
|
2 |
+
import streamlit as st
|
3 |
import PyPDF2
|
4 |
import torch
|
5 |
from transformers import AutoTokenizer, AutoModel
|
|
|
8 |
from langchain.llms import OpenAI
|
9 |
from langchain.embeddings import HuggingFaceEmbeddings
|
10 |
|
11 |
+
# Set the OpenAI API key directly (or ensure it's set in the environment)
|
12 |
+
os.environ["OPENAI_API_KEY"] = "sk-proj-oQhvGfdVctLMfvVkdqJlw9FVr5tVpvXhzbDpPbNdEIP0FGAEsygzn2L0-s T3BlbkFJO1O9KpASjLiNBFWmX9AlAUwZqv4n0wU-bvIkwMKjdLkUfuIh5EGT3olpsA"
|
13 |
+
|
14 |
# Set up the title and LinkedIn link
|
15 |
st.markdown("### Engr. Hamesh Raj")
|
16 |
st.markdown("[Engr. Hamesh Raj](https://www.linkedin.com/in/datascientisthameshraj/)")
|