Update app.py
Browse files
app.py
CHANGED
|
@@ -138,10 +138,10 @@ def respond(
|
|
| 138 |
temperature,
|
| 139 |
top_p,
|
| 140 |
):
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
system_message = f"""
|
| 146 |
You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
|
| 147 |
|
|
|
|
| 138 |
temperature,
|
| 139 |
top_p,
|
| 140 |
):
|
| 141 |
+
new_query = ra(message)
|
| 142 |
+
print("old: ",new_query)
|
| 143 |
+
new_query = str(new_query.split("Output: ", 1)[-1] if "Output: " in new_query else new_query)
|
| 144 |
+
print("new: ",new_query)
|
| 145 |
system_message = f"""
|
| 146 |
You are an expert in League of Legends (LoL) lore. You will only answer questions related to the champions and their stories within the game.
|
| 147 |
|