TheLastAI / app.py
circulartext's picture
Update app.py
a3f7337 verified
raw
history blame
3.86 kB
import streamlit as st
import time
# Set page background color to black
st.markdown(
"""
<style>
.reportview-container {
background: black;
}
</style>
""",
unsafe_allow_html=True
)
# Title of the app
st.title("The Last A.I")
# Image
st.image("key1.jpg", caption="Your Image Caption", use_column_width=True)
# Text to type
text_to_type = """Wake up, Benshiro, wake up! We've got A.I. training ahead,"
urged Benshiro's partner as they prepared for their day in sector A1-2000,
the hub of elite developers serving the World One government. It was the year 2125.
Benshiro blinked away sleep, his mind already racing ahead to the monumental task
awaiting them. "What's on your mind? What's the game plan for this week, once we finally
activate World Model Proto 1010? It's the culmination of years of struggle, bringing
together every corner of the world that we've been striving to connect."
2033
The economically disadvantaged community was being targeted by the police, and if you were
living in poverty in One Country, you were looked down upon. In 2033, a civil war broke out
in Philadelphia, Pennsylvania, New York, and Chicago. Citizens, fed up with losing jobs to A.I.
and enduring systemic mistreatment, initiated the conflict. After the long fight, there were
substantial changes and more restrictive rules implemented in communities, along with
increased travel restrictions for all citizens. Although schools and other institutions
remained, life had fundamentally changed for everyone in America.
2034
In 2034, Anonymous developed an A.I. hack that no bank or institution could counter.
This forced all American citizens to join One Country and secure their finances through
One Country accounts. These accounts were managed by the government and intended to provide
security and fairness.
2036
By 2036, the government implemented a new policy for One Country accounts.
If individuals committed a crime and did not turn themselves in, their accounts
would be frozen. This rule was highly controversial, as it curtailed personal freedoms.
In the same year, a terrorist attack by the Black Hackers involved 5000 drones targeting
a prominent community in Chicago. The attack was a response to the community cutting off
access to clean water for poorer areas.
2040
By 2040, One Country faced threats from foreign nations for various reasons. To alleviate
internal tensions, leaders opted to appoint community leaders for distinct regions called
senators. The age-old practice of personal land ownership was abolished, except for parcels
designated as outskirts land, compelling individuals to relinquish their land rights to One
Country. This measure was prompted by factors including population expansion and the looming
specter of external assaults, such as potential pandemics or drone strikes orchestrated by
terrorist factions.
2043
The year 2043 witnessed a dramatic escalation in conflict as China unleashed a formidable
A.I. to disrupt the accounts of One Country s citizens. The calculated strike plunged the
accounts of 78% of One Country s citizens into disarray, signaling the onset of a pivotal
and tumultuous era in history.
"""
# Main content area
st.write("This is a Streamlit app where the text appears as if it's being typed like an A.I.")
# Create a placeholder for the typed text
placeholder = st.empty()
# Type the text character by character with a typing animation effect
typed_text = ""
for char in text_to_type:
if char == "\n":
typed_text += "\n"
placeholder.code(typed_text, language="text")
time.sleep(0.3) # Delay for line break
else:
typed_text += char
placeholder.code(typed_text, language="text")
time.sleep(0.05) # Adjust typing speed here
# Add a delay after typing is complete
time.sleep(1)