Simplelangchain / app.py
ravithejak's picture
Update app.py
d39b109 verified
raw
history blame
289 Bytes
import os
import streamlit as st
from langchain_community.llms import HuggingFaceHub
os.environ["HUGGINGFACEHUB_API_TOKEN"]="HUGGINGFACEHUB_API_TOKEN"
llm =HuggingFaceHub(repo_id='google/flan-t5-large')
our_query ="what is india currency"
completion= llm(our_query)
print(completion)