Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def update(prompt, ort):
|
|
25 |
model="Mixtral-8x7b-32768",
|
26 |
messages=[
|
27 |
{"role": "system", "content": "You are a helpful assistant."},
|
28 |
-
{"role": "user", "content": f"gefragt sind die nächsten 3 zugverbindungen von bad kissingen nach {ort} du findest die antwort im kontext. liefer als antwort ein 2 spaltige tabelle. linke spalte: abfahrtszeit, fahrtdauer, ankunftszeit.rechte spalte: abfahrtsort,leer,zielort. formatiere die tabelle in markdown\n kontext: \n {prompt}"}
|
29 |
],
|
30 |
)
|
31 |
return completion.choices[0].message.content
|
|
|
25 |
model="Mixtral-8x7b-32768",
|
26 |
messages=[
|
27 |
{"role": "system", "content": "You are a helpful assistant."},
|
28 |
+
{"role": "user", "content": f"gefragt sind die nächsten 3 zugverbindungen von bad kissingen nach {ort} du findest die antwort im kontext. liefer als antwort ein 2 spaltige tabelle. linke spalte: abfahrtszeit, fahrtdauer, ankunftszeit.rechte spalte: abfahrtsort,leer,zielort. formatiere die tabelle in markdown\n kontext: \n {prompt} \n antworte immer auf deutsch!"}
|
29 |
],
|
30 |
)
|
31 |
return completion.choices[0].message.content
|