Afeezee commited on
Commit
bf4e5ec
·
verified ·
1 Parent(s): 144550f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1,8 +1,11 @@
1
  import gradio as gr
2
  from groq import Groq
 
 
 
3
 
4
  # Initialize the Groq client with the API key
5
- client = Groq(api_key="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")
6
 
7
  # Function to interact with the Llama 3.1 model
8
  def teach_history(user_input):
 
1
  import gradio as gr
2
  from groq import Groq
3
+ import os
4
+
5
+ api_key = os.getenv("Historia")
6
 
7
  # Initialize the Groq client with the API key
8
+ client = Groq(api_key = api_key)
9
 
10
  # Function to interact with the Llama 3.1 model
11
  def teach_history(user_input):