Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import os
|
|
4 |
import tempfile
|
5 |
import uuid
|
6 |
from dotenv import load_dotenv
|
|
|
|
|
7 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
8 |
-
from langchain.vectorstores import FAISS
|
9 |
-
from langchain.embeddings import HuggingFaceEmbeddings
|
10 |
import fitz # PyMuPDF
|
11 |
import base64
|
12 |
from PIL import Image
|
@@ -606,12 +606,6 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft()) as demo:
|
|
606 |
[chatbot, current_session_id, file_status, code_state, code_metrics]
|
607 |
)
|
608 |
|
609 |
-
page_slider.change(
|
610 |
-
update_image,
|
611 |
-
inputs=[page_slider, pdf_state],
|
612 |
-
outputs=[pdf_image]
|
613 |
-
)
|
614 |
-
|
615 |
# Tech tool handlers
|
616 |
repo_search_btn.click(
|
617 |
perform_repo_search,
|
|
|
4 |
import tempfile
|
5 |
import uuid
|
6 |
from dotenv import load_dotenv
|
7 |
+
from langchain_community.vectorstores import FAISS
|
8 |
+
from langchain_community.embeddings import HuggingFaceEmbeddings
|
9 |
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
|
|
|
|
10 |
import fitz # PyMuPDF
|
11 |
import base64
|
12 |
from PIL import Image
|
|
|
606 |
[chatbot, current_session_id, file_status, code_state, code_metrics]
|
607 |
)
|
608 |
|
|
|
|
|
|
|
|
|
|
|
|
|
609 |
# Tech tool handlers
|
610 |
repo_search_btn.click(
|
611 |
perform_repo_search,
|