Spaces:
Runtime error
Runtime error
import streamlit as st | |
import random | |
# Set the page configuration to use the full width of the screen | |
st.set_page_config(layout="wide") | |
CODELICENSING = (""" | |
1. ๐ Simplified Synopsis | |
* ๐ Ideal Open Source Code Copyright License | |
* โ๏ธ Navigating Copyright Infringement and Licensing Disagreements | |
2. ๐ฅ Alternative Healthcare Terminology Options | |
1. ๐ International Classification of Diseases (ICD) | |
* ๐ข Managed by the World Health Organization (WHO) | |
2. ๐ Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT) | |
* ๐ข Managed by SNOMED International | |
3. ๐ฌ Logical Observation Identifiers Names and Codes (LOINC) | |
* ๐ข Managed by the Regenstrief Institute | |
3. ๐ Resources | |
* ๐ AMA, WHO, SNOMED International, and Regenstrief Institute Websites | |
* ๐ Legal Journals | |
* ๐ Wikipedia (verify information with primary and authoritative sources) | |
4. ๐ก Recommendation | |
* ๐ Consult Legal Professionals | |
* ๐ฅ Consult Healthcare Organizations | |
* ๐ Consult Authoritative Sources for Comprehensive and Current Information | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Open Source Medical Software Resources</title> | |
</head> | |
<body> | |
<h1>Open Source Medical Software Resources</h1> | |
<ul> | |
<li><a href="https://en.wikipedia.org/wiki/World_Health_Organization" target="_blank">World Health Organization (WHO)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/International_Classification_of_Diseases" target="_blank">International Classification of Diseases (ICD)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/SNOMED_CT" target="_blank">Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/LOINC" target="_blank">Logical Observation Identifiers Names and Codes (LOINC)</a></li> | |
<li><a href="https://en.wikipedia.org/wiki/Regenstrief_Institute" target="_blank">Regenstrief Institute</a></li> | |
</ul> | |
<h2>Sample License File</h2> | |
<pre> | |
MIT License | |
Copyright (c) 2023 Aaron Wacker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
</pre> | |
</body> | |
</html> | |
import streamlit as st | |
st.title('Open Source Medical Software Resources') | |
""") | |
st.markdown(""" | |
๐ [World Health Organization (WHO)](https://en.wikipedia.org/wiki/World_Health_Organization) | |
๐ [International Classification of Diseases (ICD)](https://en.wikipedia.org/wiki/International_Classification_of_Diseases) | |
๐ [Systematized Nomenclature of Medicine - Clinical Terms (SNOMED CT)](https://en.wikipedia.org/wiki/SNOMED_CT) | |
๐ฌ [Logical Observation Identifiers Names and Codes (LOINC)](https://en.wikipedia.org/wiki/LOINC) | |
๐ข [Regenstrief Institute](https://en.wikipedia.org/wiki/Regenstrief_Institute) | |
""") | |
st.header('Sample License File') | |
#st.code( | |
st.markdown(""" | |
MIT License | |
Copyright (c) 2023 Aaron Wacker | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all | |
copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
SOFTWARE. | |
, language='') | |
""") | |
import streamlit as st | |
GALMIO = """ | |
| ๐ฆธ **Story Type** | ๐ **Synopsis** | ๐ฌ **Movie Poster Quotes** | | |
|-----------------------|-----------------------------------------|-----------------------------| | |
| 1๏ธโฃ The Referral Enigma | ๐ค A group of Mentats join forces to decipher an ancient riddle | "Wit beyond measure, a story to treasure!" ๐ ๐ | | |
| 2๏ธโฃ The Certificate Caper | ๐ผ Mentats unveil a mind-bending mystery with world-shaking consequences | "A thrilling ride with intellects colliding!" ๐ ๐ข | | |
| 3๏ธโฃ The Prescription Puzzlers | ๐ A team of Mentats solves medical conundrums in record time | "A story full of knowledge, without a moment of drudgery!" ๐ ๐งช | | |
| 4๏ธโฃ Diagnosis Detectives | ๐ Mentats uncover the cause of a baffling epidemic | "Science fiction meets a mastermind investigation!" ๐ ๐ฌ | | |
| 5๏ธโฃ The Treatment Team | ๐ A league of Mentats strategizes to save the world from a dire threat | "An action-packed battle of brilliant minds!" ๐ ๐ฅ | | |
| 6๏ธโฃ The Surgical Strategists | ๐ฅ Mentats perform high-stakes surgeries to save the day | "A mind-blowing fusion of medical marvels and superhero smarts!" ๐ ๐ฉบ | | |
| 7๏ธโฃ The Clearance Crusaders | ๐ Mentats unite to challenge the limits of human potential | "A tale of perseverance, powered by unparalleled intellect!" ๐ ๐ | | |
| 8๏ธโฃ The Follow-up Fanatics | ๐ Mentats devise ingenious solutions to keep history on track | "A mind-twisting journey through time and space!" ๐ ๐ | | |
| 9๏ธโฃ The Disability Defenders | โฟ Mentats champion the rights of the disabled in a futuristic utopia | "A heartwarming saga of empathy and enlightenment!" ๐ ๐ | | |
""" | |
def display_superhero_stories(): | |
st.title("๐ Superheroes of the Intellect: Chronicles of the Mentat Minds ๐") | |
st.markdown(GALMIO) | |
# Run the Streamlit UI function | |
display_superhero_stories() | |
def random_emoji_slot_machine(): | |
st.title("๐ฐ Emoji Slot Machine") | |
st.write("Welcome to the Emoji Slot Machine! Press the button below to spin and try your luck!") | |
emojis = [ | |
"๐", "๐", "๐ค", "๐ฝ", "๐ถ", "๐ฆ", "๐", "๐", "๐", "๐", | |
"๐", "๐", "๐ฆ", "๐", "๐ฉ", "๐ฎ", "๐ฃ", "๐ช", "๐", "๐", | |
"๐ฑ", "๐ญ", "๐ฆ", "๐ฏ", "๐ผ", "๐ป", "๐ฆ", "๐บ", "๐ฆ", "๐จ", | |
"๐บ๐ธ", "๐ฏ๐ต", "๐ฉ๐ช", "๐ซ๐ท", "๐ช๐ธ", "๐ฌ๐ง", "๐ฎ๐น", "๐ง๐ท", "๐จ๐ฆ", "๐ท๐บ", | |
"โฝ", "๐", "๐", "โพ", "๐พ", "๐", "๐", "๐ฑ", "๐", "๐ธ", | |
"๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐ฅณ", "๐", "๐", | |
"๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", "๐", | |
"๐", "๐", "โญ", "๐ ", "๐ฆ", "๐ง", "โ", "๐", "๐", "๐ช", | |
"๐ต", "๐ฆ", "๐ฆง", "๐ฆฆ", "๐", "๐ฆ", "๐ฆ", "๐ฆ", "๐ฆ", "๐ฆ", | |
"๐ฎ", "๐น", "๐ฒ", "๐งฉ", "๐ฏ", "๐ณ", "๐ฐ", "๐ผ", "๐ง", "๐ค" | |
] | |
if st.button("Spin"): | |
for _ in range(20): | |
spin_result = [] | |
for _ in range(100): | |
spin_result.append(random.choice(emojis)) | |
st.write(" ".join(spin_result)) | |
random_emoji_slot_machine() | |
st.markdown(GALMIO) | |