captain-awesome
commited on
Commit
•
b2a394a
1
Parent(s):
985f0ab
Update app.py
Browse files
app.py
CHANGED
@@ -46,17 +46,17 @@ from langchain.document_loaders import (
|
|
46 |
# pipeline
|
47 |
# )
|
48 |
# from langchain.llms import HuggingFaceHub
|
49 |
-
|
50 |
# from transformers import BitsAndBytesConfig
|
51 |
-
|
52 |
# from langchain.llms import CTransformers
|
53 |
-
|
54 |
# from langchain.document_loaders.base import BaseLoader
|
55 |
# from langchain.schema import Document
|
56 |
# import gradio as gr
|
57 |
# import tempfile
|
58 |
-
|
59 |
-
|
60 |
# from chromadb.utils import embedding_functions
|
61 |
# from tqdm import tqdm
|
62 |
# tqdm(disable=True, total=0) # initialise internal lock
|
|
|
46 |
# pipeline
|
47 |
# )
|
48 |
# from langchain.llms import HuggingFaceHub
|
49 |
+
import torch
|
50 |
# from transformers import BitsAndBytesConfig
|
51 |
+
import os
|
52 |
# from langchain.llms import CTransformers
|
53 |
+
import streamlit as st
|
54 |
# from langchain.document_loaders.base import BaseLoader
|
55 |
# from langchain.schema import Document
|
56 |
# import gradio as gr
|
57 |
# import tempfile
|
58 |
+
import timeit
|
59 |
+
import textwrap
|
60 |
# from chromadb.utils import embedding_functions
|
61 |
# from tqdm import tqdm
|
62 |
# tqdm(disable=True, total=0) # initialise internal lock
|