jens009 commited on
Commit
2a80a0c
β€’
1 Parent(s): 2acb04e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -13,6 +13,10 @@ def autocomplete(text):
13
  response = client.chat.completions.create(
14
  model='mixtral-8x7b-32768',
15
  messages=[
 
 
 
 
16
  {
17
  "role": "user",
18
  "content": text
@@ -30,11 +34,11 @@ def autocomplete(text):
30
  iface = gr.Interface(
31
  fn=autocomplete,
32
  inputs=gr.Textbox(lines=2,
33
- placeholder="Hello πŸ‘‹",
34
  label="Input Sentence"),
35
  outputs=gr.Markdown(),
36
  title="Catch me if you can 🐰",
37
- description="Powered by Groq & Gemma",
38
  live=True, # Set live to True for real-time feedback
39
  allow_flagging="never" # Disable flagging
40
  )
 
13
  response = client.chat.completions.create(
14
  model='mixtral-8x7b-32768',
15
  messages=[
16
+ {
17
+ "role": "system",
18
+ "content": "du bist ein deutscher KI-Assistent"
19
+ }
20
  {
21
  "role": "user",
22
  "content": text
 
34
  iface = gr.Interface(
35
  fn=autocomplete,
36
  inputs=gr.Textbox(lines=2,
37
+ placeholder="Moin! πŸ‘‹",
38
  label="Input Sentence"),
39
  outputs=gr.Markdown(),
40
  title="Catch me if you can 🐰",
41
+ description="Powered by Groq & Mistral",
42
  live=True, # Set live to True for real-time feedback
43
  allow_flagging="never" # Disable flagging
44
  )