Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from langchain.embeddings import OpenAIEmbeddings
|
|
8 |
from langchain_community.vectorstores import FAISS
|
9 |
|
10 |
API_KEY = os.getenv("YOUR_KEY")
|
|
|
11 |
MODEL = "gpt-4o"
|
12 |
|
13 |
client = OpenAI(api_key = API_KEY)
|
@@ -63,6 +64,5 @@ gr.ChatInterface(
|
|
63 |
theme = gr.themes.Soft(primary_hue = "purple"),
|
64 |
examples = [
|
65 |
"ํ์ด์ฌ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ๋
ํํ๊ธฐ ์ํ ์์์ ์ถ์ฒํด์ค.",
|
66 |
-
"์์ฆ ์์ธ์ด๋ฅผ ์์ฑํ๊ณ ์์ต๋๋ค. ๋ณด๋ค ํจ๊ณผ์ ์ผ๋ก ๊ธ์ ์จ๋ด๋ ค๊ฐ๋ ๋ฐฉ๋ฒ์ ์ ์ํด์ฃผ๋ ์์์ ์ถ์ฒํด์ฃผ์ธ์."
|
67 |
]
|
68 |
-
).launch(share = True, auth = ("user",
|
|
|
8 |
from langchain_community.vectorstores import FAISS
|
9 |
|
10 |
API_KEY = os.getenv("YOUR_KEY")
|
11 |
+
PASSWORD = os.getenv("PASSSWORD")
|
12 |
MODEL = "gpt-4o"
|
13 |
|
14 |
client = OpenAI(api_key = API_KEY)
|
|
|
64 |
theme = gr.themes.Soft(primary_hue = "purple"),
|
65 |
examples = [
|
66 |
"ํ์ด์ฌ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ฅผ ๋
ํํ๊ธฐ ์ํ ์์์ ์ถ์ฒํด์ค.",
|
|
|
67 |
]
|
68 |
+
).launch(share = True, auth = ("user", PASSWORD))
|