Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,12 +3,11 @@ import os
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
6 |
-
groq_api_key = os.environ.get('Groq_Api_Key')
|
7 |
-
|
8 |
-
subprocess.run(["export", f"GROQ_API_KEY={groq_api_key}"], check=True)
|
9 |
-
|
10 |
def generate_response(input_text):
|
11 |
-
client = Groq(
|
|
|
|
|
|
|
12 |
|
13 |
stream = client.chat.completions.create(
|
14 |
messages=[
|
|
|
3 |
import gradio as gr
|
4 |
from groq import Groq
|
5 |
|
|
|
|
|
|
|
|
|
6 |
def generate_response(input_text):
|
7 |
+
client = Groq(
|
8 |
+
api_key=os.environ.get("Groq_Api_Key"),
|
9 |
+
)
|
10 |
+
|
11 |
|
12 |
stream = client.chat.completions.create(
|
13 |
messages=[
|