File size: 387 Bytes
f8fab45
8fb4d0a
2b058ad
f8fab45
 
9ed468a
c652815
f8fab45
4e0406e
 
 
 
892c927
 
 
d39b109
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import os
import streamlit as st
from langchain_community.llms import HuggingFaceHub


os.environ["HUGGINGFACEHUB_API_TOKEN"]
llm =HuggingFaceHub(repo_id='google/flan-t5-large')


st.title("SQL Query Generator")
st.write("Returns and runs queries from questions in natural language.")

our_query = "WHAT IS TIMETRAVEL IN SNOWFLAKE"
completion = llm.invoke(our_query)
print(completion)