Spaces:
Sleeping
Sleeping
used envs
Browse files- .gitignore +2 -1
- app.py +5 -2
.gitignore
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
test**.py
|
2 |
-
__pycache__
|
|
|
|
1 |
test**.py
|
2 |
+
__pycache__
|
3 |
+
.env
|
app.py
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
import streamlit as st
|
2 |
import requests
|
3 |
from init import init
|
|
|
|
|
|
|
|
|
4 |
|
5 |
init()
|
6 |
|
7 |
-
url =
|
8 |
-
# url = "https://yapp99-llm-endpoint.hf.space"
|
9 |
|
10 |
st.set_page_config(page_title="Chat")
|
11 |
|
|
|
1 |
import streamlit as st
|
2 |
import requests
|
3 |
from init import init
|
4 |
+
from dotenv import load_dotenv
|
5 |
+
import os
|
6 |
+
|
7 |
+
load_dotenv()
|
8 |
|
9 |
init()
|
10 |
|
11 |
+
url = os.getenv("ENDPOINT_URL")
|
|
|
12 |
|
13 |
st.set_page_config(page_title="Chat")
|
14 |
|