Siyamansari commited on
Commit
f2bcd42
·
verified ·
1 Parent(s): 0db3589

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -9,6 +9,10 @@ client = Groq(api_key=api_key)
9
  MODEL_NAME = 'openai/gpt-oss-safeguard-20b'
10
 
11
  def chat_groq(current_message_content, history):
 
 
 
 
12
  try:
13
  system_prompt = 'You are a helpful ai assistant.'
14
  api_messages = [{"role": 'system', 'content': system_prompt}]
 
9
  MODEL_NAME = 'openai/gpt-oss-safeguard-20b'
10
 
11
  def chat_groq(current_message_content, history):
12
+ """
13
+ current_message_content: latest user message (string)
14
+ history: previous list of [user, bot] paris from Gradio
15
+ """
16
  try:
17
  system_prompt = 'You are a helpful ai assistant.'
18
  api_messages = [{"role": 'system', 'content': system_prompt}]