Spaces:
Runtime error
Runtime error
File size: 336 Bytes
c75c03b |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from langchain.llms import OpenAI
import streamlit as st
import os
from openaiapikey import openai_key
os.environ['OPENAI_API_KEY'] = openai_key
st.title('Lang Chain Demo with Open AI')
input_text = st.text_input("Search the topic you want")
#Open AI LLMS
llm = OpenAI(temperature=0.8)
if input_text:
st.write(llm(input_text)) |