Spaces:
Runtime error
Runtime error
move gif
Browse files
app.py
CHANGED
@@ -30,10 +30,6 @@ if assistant_api_key == '':
|
|
30 |
else:
|
31 |
gpt_assistant = GPTAssistant(assistant_api_key)
|
32 |
|
33 |
-
html_content = st.text_input("Paste your piece of HTML here:")
|
34 |
-
|
35 |
-
extract_button = st.button("Extract data format")
|
36 |
-
|
37 |
info_text = """
|
38 |
### Quick start
|
39 |
Fill the input with the HTML code you want to extract data from
|
@@ -42,6 +38,10 @@ Example below:
|
|
42 |
st.write(info_text)
|
43 |
st.image("https://j.gifs.com/gpqvPl.gif")
|
44 |
|
|
|
|
|
|
|
|
|
45 |
if html_content and extract_button:
|
46 |
try:
|
47 |
output = gpt_assistant.chain_response_format(html_content)
|
|
|
30 |
else:
|
31 |
gpt_assistant = GPTAssistant(assistant_api_key)
|
32 |
|
|
|
|
|
|
|
|
|
33 |
info_text = """
|
34 |
### Quick start
|
35 |
Fill the input with the HTML code you want to extract data from
|
|
|
38 |
st.write(info_text)
|
39 |
st.image("https://j.gifs.com/gpqvPl.gif")
|
40 |
|
41 |
+
html_content = st.text_input("Paste your piece of HTML here:")
|
42 |
+
|
43 |
+
extract_button = st.button("Extract data format")
|
44 |
+
|
45 |
if html_content and extract_button:
|
46 |
try:
|
47 |
output = gpt_assistant.chain_response_format(html_content)
|