taewon99 commited on
Commit
6332bb2
ยท
1 Parent(s): 7dacf47

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import streamlit as st
 
2
  from langchain.text_splitter import (
3
  CharacterTextSplitter,
4
  RecursiveCharacterTextSplitter,
@@ -124,7 +125,7 @@ def handle_userinput(user_question):
124
 
125
 
126
  def main():
127
- # Streamlit UI๋ฅผ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค.
128
  st.title("๋ฌธ์„œ์— ๋Œ€ํ•ด ์งˆ๋ฌธํ•˜๋Š” ์ฑ„ํŒ…")
129
  st.sidebar.title("๋ฌธ์„œ ์—…๋กœ๋“œ")
130
  st.sidebar.text("์—ฌ๊ธฐ์— ์—ฌ๋Ÿฌ๋ถ„์˜ ๋ฌธ์„œ๋ฅผ ์—…๋กœ๋“œํ•˜์„ธ์š”.")
 
1
  import streamlit as st
2
+ from dotenv import load_dotenv
3
  from langchain.text_splitter import (
4
  CharacterTextSplitter,
5
  RecursiveCharacterTextSplitter,
 
125
 
126
 
127
  def main():
128
+ load_dotenv()
129
  st.title("๋ฌธ์„œ์— ๋Œ€ํ•ด ์งˆ๋ฌธํ•˜๋Š” ์ฑ„ํŒ…")
130
  st.sidebar.title("๋ฌธ์„œ ์—…๋กœ๋“œ")
131
  st.sidebar.text("์—ฌ๊ธฐ์— ์—ฌ๋Ÿฌ๋ถ„์˜ ๋ฌธ์„œ๋ฅผ ์—…๋กœ๋“œํ•˜์„ธ์š”.")