Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +17 -6
src/streamlit_app.py
CHANGED
|
@@ -414,27 +414,38 @@ tab1, tab2 = st.tabs(["Embed", "Important Notes"])
|
|
| 414 |
|
| 415 |
|
| 416 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 417 |
with tab1:
|
| 418 |
with st.expander("Embed"):
|
| 419 |
st.write("Use the following code to embed the DataHarvest web app on your website. Feel free to adjust the width and height values to fit your page.")
|
| 420 |
code = '''
|
| 421 |
<iframe
|
| 422 |
-
src="https://aiecosystem-dataharvest.hf.space"
|
| 423 |
frameborder="0"
|
| 424 |
width="850"
|
| 425 |
height="450"
|
| 426 |
></iframe>
|
| 427 |
'''
|
| 428 |
-
st.code(code, language="html")
|
|
|
|
|
|
|
| 429 |
|
| 430 |
with tab2:
|
| 431 |
expander = st.expander("**Important Notes**")
|
| 432 |
-
|
| 433 |
-
|
|
|
|
|
|
|
| 434 |
|
|
|
|
|
|
|
| 435 |
**How to Use:** Type or paste your text into the text area below, press Ctrl + Enter, and then click the 'Results' button.
|
| 436 |
-
|
| 437 |
-
**Technical issues:** If your connection times out, please refresh the page or reopen the app's URL.
|
|
|
|
| 438 |
|
| 439 |
|
| 440 |
st.markdown("For any errors or inquiries, please contact us at [info@nlpblogs.com](mailto:info@nlpblogs.com)")
|
|
|
|
| 414 |
|
| 415 |
|
| 416 |
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
tab1, tab2 = st.tabs(["Embed", "Important Notes"]) # Assuming you have defined the tabs
|
| 420 |
+
|
| 421 |
with tab1:
|
| 422 |
with st.expander("Embed"):
|
| 423 |
st.write("Use the following code to embed the DataHarvest web app on your website. Feel free to adjust the width and height values to fit your page.")
|
| 424 |
code = '''
|
| 425 |
<iframe
|
| 426 |
+
src="[https://aiecosystem-dataharvest.hf.space](https://aiecosystem-dataharvest.hf.space)"
|
| 427 |
frameborder="0"
|
| 428 |
width="850"
|
| 429 |
height="450"
|
| 430 |
></iframe>
|
| 431 |
'''
|
| 432 |
+
st.code(code, language="html") # Keeps the copy icon, as intended for tab1
|
| 433 |
+
|
| 434 |
+
|
| 435 |
|
| 436 |
with tab2:
|
| 437 |
expander = st.expander("**Important Notes**")
|
| 438 |
+
# Use st.markdown() with a code block (```) to display the notes
|
| 439 |
+
# without the copy-to-clipboard icon, and retaining the styling.
|
| 440 |
+
expander.markdown("""
|
| 441 |
+
**Named Entities:** This DataHarvest web app predicts nine (9) labels: "person", "country", "city", "organization", "date", "time", "cardinal", "money", "position"
|
| 442 |
|
| 443 |
+
**Results:** Results are compiled into a single, comprehensive **HTML report** and a **CSV file** for easy download and sharing.
|
| 444 |
+
|
| 445 |
**How to Use:** Type or paste your text into the text area below, press Ctrl + Enter, and then click the 'Results' button.
|
| 446 |
+
|
| 447 |
+
**Technical issues:** If your connection times out, please refresh the page or reopen the app's URL.
|
| 448 |
+
""")
|
| 449 |
|
| 450 |
|
| 451 |
st.markdown("For any errors or inquiries, please contact us at [info@nlpblogs.com](mailto:info@nlpblogs.com)")
|