Spaces:
Running
Running
update new feature
Browse files- api_calls.py +4 -2
api_calls.py
CHANGED
@@ -21,7 +21,8 @@ def call_api(api_path, api_params):
|
|
21 |
return response.json()
|
22 |
|
23 |
def api_rag_qa_chain_demo(openai_model_name, query, year, target_type, target_value, history):
|
24 |
-
api_path = "qa/demo"
|
|
|
25 |
api_params = {
|
26 |
"openai_model_name": openai_model_name,
|
27 |
"query": query,
|
@@ -33,7 +34,8 @@ def api_rag_qa_chain_demo(openai_model_name, query, year, target_type, target_va
|
|
33 |
return call_api_stream(api_path, api_params)
|
34 |
|
35 |
def api_rag_summ_chain_demo(openai_model_name, query, year, target_type, target_value, tone):
|
36 |
-
api_path = "summary/demo"
|
|
|
37 |
api_params = {
|
38 |
"openai_model_name": openai_model_name,
|
39 |
"query": query,
|
|
|
21 |
return response.json()
|
22 |
|
23 |
def api_rag_qa_chain_demo(openai_model_name, query, year, target_type, target_value, history):
|
24 |
+
# api_path = "qa/demo"
|
25 |
+
api_path = "qa/demo/test-feature"
|
26 |
api_params = {
|
27 |
"openai_model_name": openai_model_name,
|
28 |
"query": query,
|
|
|
34 |
return call_api_stream(api_path, api_params)
|
35 |
|
36 |
def api_rag_summ_chain_demo(openai_model_name, query, year, target_type, target_value, tone):
|
37 |
+
# api_path = "summary/demo"
|
38 |
+
api_path = "summary/demo/test-feature"
|
39 |
api_params = {
|
40 |
"openai_model_name": openai_model_name,
|
41 |
"query": query,
|