Simplelangchain / app.py
ravithejak's picture
Update app.py
c652815 verified
raw
history blame
287 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)