Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,6 @@ if assistant_api_key == '':
|
|
42 |
else:
|
43 |
gpt_assistant = GPTAssistant(assistant_api_key)
|
44 |
|
45 |
-
@traceable(run_type="tool")
|
46 |
-
def invalid_input(html):
|
47 |
-
# TODO: more checks
|
48 |
-
print(html)
|
49 |
-
return True
|
50 |
-
|
51 |
|
52 |
html_content = None
|
53 |
# check if html_content is an url, and show error if it is
|
@@ -57,7 +51,7 @@ def html_content_input():
|
|
57 |
if html_content:
|
58 |
if html_content.startswith("http"):
|
59 |
st.write("Please paste the HTML piece code, not the URL")
|
60 |
-
|
61 |
|
62 |
return st.button("Generate output format & code")
|
63 |
|
|
|
42 |
else:
|
43 |
gpt_assistant = GPTAssistant(assistant_api_key)
|
44 |
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
|
46 |
html_content = None
|
47 |
# check if html_content is an url, and show error if it is
|
|
|
51 |
if html_content:
|
52 |
if html_content.startswith("http"):
|
53 |
st.write("Please paste the HTML piece code, not the URL")
|
54 |
+
html_content = None
|
55 |
|
56 |
return st.button("Generate output format & code")
|
57 |
|