Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
| 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):
|