| import os | |
| import streamlit as st # Front End / UI | |
| from langchain_openai import ChatOpenAI | |
| from langchain.prompts import PromptTemplate | |
| from langchain.chains import LLMChain, SequentialChain | |
| # os.environ["OPENAI_API_KEY"] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
| def main(): | |
| st.title("Chain Based Story Generator") | |
| input1 = st.text_input("An inspirational object to start a story") | |
| input2 = st.text_input("A tone or a writer's style to shape the story") | |
| input3 = st.text_input("The final language for translating the text") | |
| # if st.button("Generate"): | |
| if __name__ == "__main__": | |
| main() |