Engineer786 commited on
Commit
5391fc9
·
verified ·
1 Parent(s): 33866cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -50,7 +50,10 @@ def query_llm(prompt, api_key):
50
  st.title("RAG-Based Tariff Data Application")
51
 
52
  url = st.text_input("Enter Tariff Data URL", "https://iesco.com.pk/index.php/customer-services/tariff-guide")
53
- api_key = st.text_input("Enter Groq API Key", type="password")
 
 
 
54
 
55
  if st.button("Process Tariff Data"):
56
  with st.spinner("Extracting and processing data..."):
 
50
  st.title("RAG-Based Tariff Data Application")
51
 
52
  url = st.text_input("Enter Tariff Data URL", "https://iesco.com.pk/index.php/customer-services/tariff-guide")
53
+ #api_key = st.text_input("Enter Groq API Key", type="password")
54
+ GROQ_API_KEY= os.environ.get('GroqApi')
55
+ client = Groq(api_key=GROQ_API_KEY)
56
+
57
 
58
  if st.button("Process Tariff Data"):
59
  with st.spinner("Extracting and processing data..."):