Spaces:
Sleeping
Sleeping
| 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) | |