Spaces:
Runtime error
Runtime error
trace
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ os.environ["LANGCHAIN_API_KEY"]=st.secrets["LANGCHAIN_API_KEY"]
|
|
| 16 |
os.environ["LANGCHAIN_PROJECT"]=st.secrets["LANGCHAIN_PROJECT"]
|
| 17 |
|
| 18 |
@traceable(run_type="tool")
|
| 19 |
-
def start(run
|
| 20 |
st.write("This app helps you to extract data from HTML code using web scraping. It uses GPT-3.5-turbo to generate the code for you. \n *Contribute to this project on [GitHub](https://github.com/CognitiveLabs/GPT-auto-webscraping)*")
|
| 21 |
|
| 22 |
with st.expander(label="Check out the video demo"):
|
|
@@ -32,10 +32,9 @@ def start(run=False):
|
|
| 32 |
"""
|
| 33 |
st.write(info_text)
|
| 34 |
st.image("https://j.gifs.com/gpqvPl.gif")
|
| 35 |
-
|
| 36 |
-
return True
|
| 37 |
# use time library
|
| 38 |
-
start(run=
|
| 39 |
|
| 40 |
if assistant_api_key == '':
|
| 41 |
assistant_api_key = st.secrets["API_KEY"]
|
|
|
|
| 16 |
os.environ["LANGCHAIN_PROJECT"]=st.secrets["LANGCHAIN_PROJECT"]
|
| 17 |
|
| 18 |
@traceable(run_type="tool")
|
| 19 |
+
def start(run):
|
| 20 |
st.write("This app helps you to extract data from HTML code using web scraping. It uses GPT-3.5-turbo to generate the code for you. \n *Contribute to this project on [GitHub](https://github.com/CognitiveLabs/GPT-auto-webscraping)*")
|
| 21 |
|
| 22 |
with st.expander(label="Check out the video demo"):
|
|
|
|
| 32 |
"""
|
| 33 |
st.write(info_text)
|
| 34 |
st.image("https://j.gifs.com/gpqvPl.gif")
|
| 35 |
+
return run
|
|
|
|
| 36 |
# use time library
|
| 37 |
+
start(run='start')
|
| 38 |
|
| 39 |
if assistant_api_key == '':
|
| 40 |
assistant_api_key = st.secrets["API_KEY"]
|