Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,10 +2,13 @@ from groq import Groq
|
|
| 2 |
import gradio as gr
|
| 3 |
import time
|
| 4 |
import threading
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
# Initialize the Groq client with your API key
|
| 7 |
client = Groq(
|
| 8 |
-
api_key=
|
| 9 |
)
|
| 10 |
|
| 11 |
# List to maintain the conversation history, starting with a default prompt
|
|
|
|
| 2 |
import gradio as gr
|
| 3 |
import time
|
| 4 |
import threading
|
| 5 |
+
import os
|
| 6 |
+
|
| 7 |
+
api_key = os.getenv("TriviaVilla")
|
| 8 |
|
| 9 |
# Initialize the Groq client with your API key
|
| 10 |
client = Groq(
|
| 11 |
+
api_key= api_key
|
| 12 |
)
|
| 13 |
|
| 14 |
# List to maintain the conversation history, starting with a default prompt
|