Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
-
|
4 |
-
# Assuming `groq` is the correct package name and it has the described structure
|
5 |
from groq import Groq
|
6 |
|
7 |
-
client = Groq(api_key=
|
8 |
|
9 |
|
10 |
def get_response(question, model_choice):
|
|
|
1 |
import gradio as gr
|
2 |
import os
|
|
|
|
|
3 |
from groq import Groq
|
4 |
|
5 |
+
client = Groq(api_key=os.environ['GROQ_API_KEY'])
|
6 |
|
7 |
|
8 |
def get_response(question, model_choice):
|