Shankarm08 commited on
Commit
7f48a11
·
verified ·
1 Parent(s): 9d3800d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -6,12 +6,10 @@ import streamlit as st
6
  from langchain_openai import OpenAI
7
  from langchain_huggingface import HuggingFaceEndpoint
8
 
9
- #When deployed on huggingface spaces, this values has to be passed using Variables & Secrets setting, as shown in the video :)
10
- #import os
11
- #os.environ["OPENAI_API_KEY"] = "sk-PLfFwPq6y24234234234FJ1Uc234234L8hVowXdt"
12
 
13
  import os
14
- os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
15
 
16
  #Function to return the response
17
  def load_answer(question):
 
6
  from langchain_openai import OpenAI
7
  from langchain_huggingface import HuggingFaceEndpoint
8
 
9
+
 
 
10
 
11
  import os
12
+ os.environ["HUGGINGFACEHUB_API_TOKEN"] = "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"
13
 
14
  #Function to return the response
15
  def load_answer(question):