Spaces:
Sleeping
Sleeping
File size: 321 Bytes
aca6db8 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
try:
from langchain_community.document_loaders import PyPDFLoader
except ImportError:
from langchain.document_loaders import PyPDFLoader
def dummy_func(pdf):
return "โ
ุชู
ุฑูุน ุงูู
ูู:", pdf.name
iface = gr.Interface(fn=dummy_func, inputs="file", outputs="text")
iface.launch() |