Spaces:
Runtime error
Runtime error
update librarries
Browse files
app.py
CHANGED
@@ -1,10 +1,22 @@
|
|
1 |
-
import
|
|
|
|
|
|
|
|
|
2 |
import subprocess
|
3 |
-
|
|
|
4 |
import gradio as gr
|
5 |
-
import
|
|
|
6 |
from huggingface_hub import whoami, list_models
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
#Code for extracting the markdown fies from a Repo
|
9 |
#To get markdowns from github for any/your repo
|
10 |
def get_github_docs(repo_link):
|
|
|
1 |
+
from langchain.llms import OpenAI
|
2 |
+
from langchain.chains.qa_with_sources import load_qa_with_sources_chain
|
3 |
+
from langchain.docstore.document import Document
|
4 |
+
import requests
|
5 |
+
import pathlib
|
6 |
import subprocess
|
7 |
+
import tempfile
|
8 |
+
import os
|
9 |
import gradio as gr
|
10 |
+
import pickle
|
11 |
+
from huggingface_hub import HfApi, upload_folder
|
12 |
from huggingface_hub import whoami, list_models
|
13 |
|
14 |
+
# using a vector space for our search
|
15 |
+
from langchain.embeddings.openai import OpenAIEmbeddings
|
16 |
+
from langchain.vectorstores.faiss import FAISS
|
17 |
+
from langchain.text_splitter import CharacterTextSplitter
|
18 |
+
|
19 |
+
|
20 |
#Code for extracting the markdown fies from a Repo
|
21 |
#To get markdowns from github for any/your repo
|
22 |
def get_github_docs(repo_link):
|