Customer / app.py
Dricz's picture
Update app.py
fbc7d7a verified
raw
history blame
268 Bytes
import gradio as gr
from langchain_community.document_loaders import TextLoader
def greet(name):
return "Hello " + name + "!!"
loader = TextLoader("test.txt")
data = loader.load()
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()