Shreyas094 commited on
Commit
7ce26c0
·
verified ·
1 Parent(s): 82cd6c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -181,8 +181,7 @@ Answer:"""
181
  def create_gradio_interface():
182
  try:
183
  logger.info("Creating Gradio interface...")
184
- # You should never hardcode API keys - use environment variables in production
185
- api_key = os.getenv("HUGGINGFACE_API_KEY", "your_huggingface_api_key")
186
  rag = RAGApplication(hf_api_key=api_key)
187
 
188
  with gr.Blocks() as demo:
 
181
  def create_gradio_interface():
182
  try:
183
  logger.info("Creating Gradio interface...")
184
+ api_key = os.getenv("HF_API_KEY")
 
185
  rag = RAGApplication(hf_api_key=api_key)
186
 
187
  with gr.Blocks() as demo: