Spaces:
Runtime error
Runtime error
gif example
Browse files
app.py
CHANGED
|
@@ -31,10 +31,17 @@ else:
|
|
| 31 |
gpt_assistant = GPTAssistant(assistant_api_key)
|
| 32 |
|
| 33 |
html_content = st.text_input("Paste your piece of HTML here:")
|
| 34 |
-
if not html_content:
|
| 35 |
-
st.image("https://j.gifs.com/gpqvPl.gif")
|
| 36 |
|
| 37 |
extract_button = st.button("Extract data format")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
if html_content and extract_button:
|
| 39 |
try:
|
| 40 |
output = gpt_assistant.chain_response_format(html_content)
|
|
|
|
| 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
|
| 40 |
+
Example below:
|
| 41 |
+
"""
|
| 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)
|