Spaces:
Runtime error
Runtime error
A-baoYang
commited on
Commit
·
ea84703
1
Parent(s):
30e665e
Bugfix
Browse files- api_calls.py +2 -4
api_calls.py
CHANGED
@@ -20,21 +20,19 @@ def call_api(api_path, api_params):
|
|
20 |
)
|
21 |
return response.json()
|
22 |
|
23 |
-
def api_qa_normal(query, filtered_data
|
24 |
api_path = "qa/normal"
|
25 |
api_params = {
|
26 |
"query": query,
|
27 |
"filtered_data": filtered_data,
|
28 |
-
"prompt_template": prompt_template
|
29 |
}
|
30 |
return call_api_stream(api_path, api_params)
|
31 |
|
32 |
-
def api_qa_waterfee(query, filtered_data
|
33 |
api_path = "qa/waterfee"
|
34 |
api_params = {
|
35 |
"query": query,
|
36 |
"filtered_data": filtered_data,
|
37 |
-
"prompt_template": prompt_template
|
38 |
}
|
39 |
return call_api_stream(api_path, api_params)
|
40 |
|
|
|
20 |
)
|
21 |
return response.json()
|
22 |
|
23 |
+
def api_qa_normal(query, filtered_data):
|
24 |
api_path = "qa/normal"
|
25 |
api_params = {
|
26 |
"query": query,
|
27 |
"filtered_data": filtered_data,
|
|
|
28 |
}
|
29 |
return call_api_stream(api_path, api_params)
|
30 |
|
31 |
+
def api_qa_waterfee(query, filtered_data):
|
32 |
api_path = "qa/waterfee"
|
33 |
api_params = {
|
34 |
"query": query,
|
35 |
"filtered_data": filtered_data,
|
|
|
36 |
}
|
37 |
return call_api_stream(api_path, api_params)
|
38 |
|