Update app.py
Browse files
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="
|
34 |
label="Input Sentence"),
|
35 |
outputs=gr.Markdown(),
|
36 |
title="Catch me if you can π°",
|
37 |
-
description="Powered by Groq &
|
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 |
)
|