Spaces:
Running
Running
fix listdit
Browse files
app.py
CHANGED
@@ -1,5 +1,22 @@
|
|
1 |
import streamlit as st
|
2 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
x = st.slider('Select a value')
|
5 |
st.write(x, 'squared is', x * x)
|
@@ -7,5 +24,5 @@ st.write(x, 'squared is', x * x)
|
|
7 |
current_working_directory = os.getcwd()
|
8 |
print(current_working_directory)
|
9 |
st.write('current dir:', current_working_directory)
|
10 |
-
|
11 |
-
|
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
+
import textwrap
|
4 |
+
import torch
|
5 |
+
import chromadb
|
6 |
+
import langchain
|
7 |
+
import openai
|
8 |
+
from langchain.chains import RetrievalQA
|
9 |
+
from langchain.chat_models import ChatOpenAI
|
10 |
+
from langchain.document_loaders import TextLoader, UnstructuredPDFLoader, YoutubeLoader
|
11 |
+
from langchain.embeddings import HuggingFaceEmbeddings, OpenAIEmbeddings, HuggingFaceInstructEmbeddings
|
12 |
+
from langchain.indexes import VectorstoreIndexCreator
|
13 |
+
from langchain.llms import OpenAI, HuggingFacePipeline
|
14 |
+
from langchain.text_splitter import RecursiveCharacterTextSplitter
|
15 |
+
from langchain.vectorstores import Chroma
|
16 |
+
from langchain.prompts import PromptTemplate
|
17 |
+
from auto_gptq import AutoGPTQForCausalLM
|
18 |
+
from transformers import AutoTokenizer, pipeline, logging, TextStreamer
|
19 |
+
from langchain.document_loaders.image import UnstructuredImageLoader
|
20 |
|
21 |
x = st.slider('Select a value')
|
22 |
st.write(x, 'squared is', x * x)
|
|
|
24 |
current_working_directory = os.getcwd()
|
25 |
print(current_working_directory)
|
26 |
st.write('current dir:', current_working_directory)
|
27 |
+
arr = os.listdir('.')
|
28 |
+
st.write('dir contents:',arr)
|