Update app.py
Browse files
app.py
CHANGED
@@ -23,8 +23,11 @@ client = InferenceClient("mistralai/Mistral-7B-Instruct-v0.2")
|
|
23 |
def respond(message, history, name, char_class, char_alignment, char_race, campaign, party):
|
24 |
|
25 |
response = ""
|
|
|
26 |
top_chunks = get_top_chunks(f"{char_class}, {char_alignment}, {char_race}, {campaign},{party},{message}")
|
27 |
context = "\n".join(top_chunks)
|
|
|
|
|
28 |
|
29 |
messages = [
|
30 |
{
|
|
|
23 |
def respond(message, history, name, char_class, char_alignment, char_race, campaign, party):
|
24 |
|
25 |
response = ""
|
26 |
+
print(message)
|
27 |
top_chunks = get_top_chunks(f"{char_class}, {char_alignment}, {char_race}, {campaign},{party},{message}")
|
28 |
context = "\n".join(top_chunks)
|
29 |
+
print(context)
|
30 |
+
|
31 |
|
32 |
messages = [
|
33 |
{
|