GianJSX commited on
Commit
014a1d9
1 Parent(s): d13220b
Files changed (2) hide show
  1. .gitignore +3 -1
  2. app.py +2 -3
.gitignore CHANGED
@@ -1,2 +1,4 @@
1
  config.ini
2
- __pycache__/
 
 
 
1
  config.ini
2
+ __pycache__/
3
+ .streamlit/
4
+ secrets.toml
app.py CHANGED
@@ -22,21 +22,20 @@ with st.expander(label="Check out the video demo"):
22
  info_text = """
23
  **Quick start** \n
24
  Fill the input with the HTML code you want to extract data from
25
- Example below:
26
  """
27
  st.write(info_text)
28
  st.image("https://j.gifs.com/gpqvPl.gif")
29
 
30
 
31
  if assistant_api_key == '':
32
- assistant_api_key = st.text_input("Paste your API key here:")
33
  if assistant_api_key:
34
  gpt_assistant = GPTAssistant(assistant_api_key)
35
  else:
36
  gpt_assistant = GPTAssistant(assistant_api_key)
37
 
38
 
39
- html_content = st.text_input("Paste your piece of HTML here:")
40
 
41
  extract_button = st.button("Extract data format")
42
 
 
22
  info_text = """
23
  **Quick start** \n
24
  Fill the input with the HTML code you want to extract data from
 
25
  """
26
  st.write(info_text)
27
  st.image("https://j.gifs.com/gpqvPl.gif")
28
 
29
 
30
  if assistant_api_key == '':
31
+ assistant_api_key = st.secrets["API_KEY"]
32
  if assistant_api_key:
33
  gpt_assistant = GPTAssistant(assistant_api_key)
34
  else:
35
  gpt_assistant = GPTAssistant(assistant_api_key)
36
 
37
 
38
+ html_content = st.text_input("Paste your piece of HTML here:", max_chars=10000)
39
 
40
  extract_button = st.button("Extract data format")
41