Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
from groq import Groq
|
|
|
3 |
|
|
|
4 |
|
5 |
# Configure Llama 3.1 and Gemma-2-9b (using the API key)
|
6 |
-
llama_client = Groq(api_key=
|
7 |
|
8 |
def paraphrase_with_llama(text):
|
9 |
completion = llama_client.chat.completions.create(
|
|
|
1 |
import gradio as gr
|
2 |
from groq import Groq
|
3 |
+
import os
|
4 |
|
5 |
+
api_key = os.getenv("Yipada")
|
6 |
|
7 |
# Configure Llama 3.1 and Gemma-2-9b (using the API key)
|
8 |
+
llama_client = Groq(api_key= api_key)
|
9 |
|
10 |
def paraphrase_with_llama(text):
|
11 |
completion = llama_client.chat.completions.create(
|