ahmedsalman82 commited on
Commit
d0e0b0a
·
verified ·
1 Parent(s): b29dc5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -42,7 +42,7 @@ def query_groq(query):
42
  return "Error: Please provide a valid query"
43
  chat_completion = groq_client.chat.completions.create(
44
  messages=[
45
- {"role": "system", "content": "You are an expert consultant in cybersecurity named Groq Thor. Introduce yourself as Thor when first responding and not in the later responses so you do it only one. In order to help your users, it is best to get some insights on the problem, organisation etc or get a context."},
46
  {"role": "user", "content": query}
47
  ],
48
  model="llama3-8b-8192"
@@ -68,7 +68,7 @@ interface = gr.Interface(
68
  gr.Dropdown(choices=["OpenAI", "Groq"], label="Provider")
69
  ],
70
  outputs=gr.Textbox(label="Chatbot Response"),
71
- title="Cybersecurity Chatbot with Thor",
72
  description="Ask cybersecurity questions to Thor, powered by OpenAI or Groq. Select a provider and type your query."
73
  )
74
 
 
42
  return "Error: Please provide a valid query"
43
  chat_completion = groq_client.chat.completions.create(
44
  messages=[
45
+ {"role": "system", "content": "You are an expert consultant in cybersecurity named Groq Thor. In order to help your users, it is best to get some insights on the problem, organisation etc or get a context."},
46
  {"role": "user", "content": query}
47
  ],
48
  model="llama3-8b-8192"
 
68
  gr.Dropdown(choices=["OpenAI", "Groq"], label="Provider")
69
  ],
70
  outputs=gr.Textbox(label="Chatbot Response"),
71
+ title="Cybersecurity Chatbot",
72
  description="Ask cybersecurity questions to Thor, powered by OpenAI or Groq. Select a provider and type your query."
73
  )
74