Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
import os
|
2 |
import requests
|
3 |
-
from llama_index import VectorStoreIndex, Document
|
4 |
-
from llama_index.readers.file
|
5 |
-
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
6 |
import gradio as gr
|
|
|
|
|
|
|
|
|
7 |
|
8 |
# Descargar y guardar PDF
|
9 |
def download_pdf(url, destination):
|
|
|
1 |
import os
|
2 |
import requests
|
3 |
+
from llama_index.core import VectorStoreIndex, Settings, Document
|
4 |
+
from llama_index.readers.file import PDFReader
|
|
|
5 |
import gradio as gr
|
6 |
+
from llama_index.embeddings.huggingface import HuggingFaceEmbedding
|
7 |
+
|
8 |
+
# Disable the default LLM
|
9 |
+
Settings.llm = None
|
10 |
|
11 |
# Descargar y guardar PDF
|
12 |
def download_pdf(url, destination):
|