Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@
|
|
94 |
# # Rerun to show the updated UI
|
95 |
# st.experimental_rerun()
|
96 |
|
97 |
-
|
98 |
import os
|
99 |
from groq import Groq
|
100 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
@@ -105,6 +104,7 @@ import streamlit as st
|
|
105 |
from tempfile import NamedTemporaryFile
|
106 |
|
107 |
# Initialize Groq client
|
|
|
108 |
client = Groq(api_key=os.getenv("Groq_api_key"))
|
109 |
|
110 |
# Function to extract text from a PDF
|
@@ -190,5 +190,3 @@ if uploaded_file:
|
|
190 |
st.write(f"**User Query:** {chat['query']}")
|
191 |
st.write(f"**Response:** {chat['response']}")
|
192 |
st.write("---")
|
193 |
-
|
194 |
-
|
|
|
94 |
# # Rerun to show the updated UI
|
95 |
# st.experimental_rerun()
|
96 |
|
|
|
97 |
import os
|
98 |
from groq import Groq
|
99 |
from langchain_community.embeddings import HuggingFaceEmbeddings
|
|
|
104 |
from tempfile import NamedTemporaryFile
|
105 |
|
106 |
# Initialize Groq client
|
107 |
+
# client = Groq(api_key=os.environ.get("GROQ_API_KEY"))
|
108 |
client = Groq(api_key=os.getenv("Groq_api_key"))
|
109 |
|
110 |
# Function to extract text from a PDF
|
|
|
190 |
st.write(f"**User Query:** {chat['query']}")
|
191 |
st.write(f"**Response:** {chat['response']}")
|
192 |
st.write("---")
|
|
|
|