CosmoAI commited on
Commit
c532af7
1 Parent(s): 238ba04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -2,6 +2,7 @@ import os
2
  import streamlit as st
3
  from groq import Groq
4
 
 
5
 
6
  def make_call(api):
7
  """Calls the Groq API (assuming API key auth) and handles potential errors."""
@@ -26,12 +27,7 @@ def make_call(api):
26
  print(f"API call failed for: {e}")
27
  return None # Indicate failur
28
 
29
- api1 = os.environ("GROQ_API_KEY"),
30
- # api1 = os.environ.get("GROQ_API_KEY"),
31
- # api1 = os.environ.get("GROQ_API_KEY"),
32
- # api1 = os.environ.get("GROQ_API_KEY"),
33
- # api1 = os.environ.get("GROQ_API_KEY"),
34
- # api1 = os.environ.get("GROQ_API_KEY"),
35
 
36
  apis = [
37
  api1,
 
2
  import streamlit as st
3
  from groq import Groq
4
 
5
+ load_dotnev()
6
 
7
  def make_call(api):
8
  """Calls the Groq API (assuming API key auth) and handles potential errors."""
 
27
  print(f"API call failed for: {e}")
28
  return None # Indicate failur
29
 
30
+ api1 = os.getenv("GROQ_API_KEY")
 
 
 
 
 
31
 
32
  apis = [
33
  api1,