Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,12 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from groq import Groq
|
3 |
|
4 |
# Groq API Configuration
|
5 |
-
|
|
|
|
|
|
|
6 |
|
7 |
# Function to handle responses from Groq
|
8 |
def chatbot(message, history, system_message, max_tokens, temperature, top_p):
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
from groq import Groq
|
4 |
|
5 |
# Groq API Configuration
|
6 |
+
|
7 |
+
keyment = os.getenv ("Mental")
|
8 |
+
|
9 |
+
client = Groq(api_key = keyment)
|
10 |
|
11 |
# Function to handle responses from Groq
|
12 |
def chatbot(message, history, system_message, max_tokens, temperature, top_p):
|