Spaces:
Sleeping
Sleeping
Commit
·
7210e05
1
Parent(s):
33c996e
new api = retrieve chunks + some more text fixing
Browse files
app.py
CHANGED
|
@@ -294,6 +294,7 @@ def retrieve_chunks(question, top_k=20):
|
|
| 294 |
|
| 295 |
def create_demo_interface(answer_question_func, switch_model_func, current_model, chunk_info=None):
|
| 296 |
with gr.Blocks(title="AIEXP - AI Expert для нормативной документации", theme=gr.themes.Soft()) as demo:
|
|
|
|
| 297 |
|
| 298 |
gr.Markdown("""
|
| 299 |
# AIEXP - Artificial Intelligence Expert
|
|
@@ -403,7 +404,7 @@ def main_switch_model(model_name):
|
|
| 403 |
|
| 404 |
return status_message
|
| 405 |
|
| 406 |
-
|
| 407 |
|
| 408 |
|
| 409 |
def main():
|
|
|
|
| 294 |
|
| 295 |
def create_demo_interface(answer_question_func, switch_model_func, current_model, chunk_info=None):
|
| 296 |
with gr.Blocks(title="AIEXP - AI Expert для нормативной документации", theme=gr.themes.Soft()) as demo:
|
| 297 |
+
gr.api(retrieve_chunks, api_name="retrieve_chunks")
|
| 298 |
|
| 299 |
gr.Markdown("""
|
| 300 |
# AIEXP - Artificial Intelligence Expert
|
|
|
|
| 404 |
|
| 405 |
return status_message
|
| 406 |
|
| 407 |
+
|
| 408 |
|
| 409 |
|
| 410 |
def main():
|