Yapp99 commited on
Commit
2e04abf
·
1 Parent(s): f4b3a72
Files changed (2) hide show
  1. .gitignore +2 -1
  2. 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 = "http://127.0.0.1:5723"
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