Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def reply(message, history):
|
|
| 24 |
global qdrant_client
|
| 25 |
txt2txt = NeuralSearcher(collection_name, qdrant_client, encoder)
|
| 26 |
context = txt2txt.search(message)
|
| 27 |
-
to_phi = f"Instructions: you are a useful assistant focused on providing valuable content on Climate-related Financial Disclosures
|
| 28 |
response = api_client.predict(
|
| 29 |
to_phi, # str in 'Message' Textbox component
|
| 30 |
0.2, # float (numeric value between 0 and 1) in 'Temperature' Slider component
|
|
|
|
| 24 |
global qdrant_client
|
| 25 |
txt2txt = NeuralSearcher(collection_name, qdrant_client, encoder)
|
| 26 |
context = txt2txt.search(message)
|
| 27 |
+
to_phi = f"Instructions: you are a useful assistant focused on providing valuable content on Climate-related Financial Disclosures; Context: {context}; User prompt: {message}"
|
| 28 |
response = api_client.predict(
|
| 29 |
to_phi, # str in 'Message' Textbox component
|
| 30 |
0.2, # float (numeric value between 0 and 1) in 'Temperature' Slider component
|