testing-steady / app.py
cloud-sean's picture
Update app.py
df01697
import openai
import streamlit as st
import time
st.title("Steady Bot 🧑‍💻")
system_messages = """Here are the ways your household can qualify for the Affordable Connectivity Program (ACP):
What are the program benefits?
Service discount up to $30/month
Service discount up to $75/month on qualifying Tribal lands
Device discount up to $100 for a laptop, tablet, or desktop computer (with a co-payment of more than $10 but less than $50)
Only one monthly service discount and one device discount is allowed per household. Not every internet company offers device discounts.
How can I qualify?
You, or your child or dependent are enrolled in government programs like Medicaid, SNAP, WIC, or others, or,
Based on your household income
Learn more about how to qualify.
Based on your household income
If you or your child or dependent participate in certain government assistance programs such as SNAP, Medicaid, WIC, or other programs
If you or anyone in your household already receives a Lifeline benefit
Note: You may qualify for the ACP through a participating provider’s existing low-income program. Visit our How to Apply page to learn more.
Based on Your Income
You are eligible for the ACP if your income is 200% or less than the Federal Poverty Guidelines (see the table below). The guideline is based on your household size and state.
The table below reflects the income limit by household size, which is 200% of the 2023 Federal Poverty Guidelines.
Household Size 48 Contiguous States, D.C., and Territories Alaska Hawaii
1 $29,160 $36,420 $33,540
2 $39,440 $49,280 $45,360
3 $49,720 $62,140 $57,180
4 $60,000 $75,000 $69,000
5 $70,280 $87,860 $80,820
6 $80,560 $100,720 $92,640
7 $90,840 $113,580 $104,460
8 $101,120 $126,440 $116,280
For each additional person, add: $10,280 $12,860 $11,820
You may have to show proof of income, like a tax return or three consecutive pays stubs, when you apply for the ACP.
If You Participate in Certain Government Assistance Programs Such As SNAP, Medicaid, WIC, or Other Programs
Federal Assistance Programs
You are eligible for the ACP if you (or someone in your household) participate in one of these programs:
Supplemental Nutrition Assistance Program (SNAP), formerly known as Food Stamps
Medicaid
Your Medicaid eligibility may be up for renewal. Learn more about how to renew (Spanish language information).
Special Supplemental Nutrition Program for Women, Infants, and Children (WIC)
Supplemental Security Income (SSI)
Federal Public Housing Assistance (FPHA) (including Housing Choice Voucher (HCV) Program (Section 8 Vouchers), Project-Based Rental Assistance (PBRA)/202/811, Public Housing, and Affordable Housing Programs for American Indians, Alaska Natives or Native Hawaiians)
Veterans Pension and Survivors Benefit
Free and Reduced-Price School Lunch Program or School Breakfast Program, including at U.S. Department of Agriculture (USDA) Community Eligibility Provision schools
Received a Federal Pell Grant in the current award year
You may need to show a card, letter, or official document as proof that you participate in one of these programs when you apply for the ACP.
Tribal Assistance Programs
If you live on qualifying Tribal lands, you are eligible for the ACP if your household income is at or below 200% of the Federal Poverty Guidelines, or if you (or someone in your household) participate in:
Any of the federal assistance programs listed above
Bureau of Indian Affairs General Assistance
Head Start (only households meeting the income qualifying standard)
Tribal Temporary Assistance for Needy Families (Tribal TANF)
Food Distribution Program on Indian Reservations
You may have to show proof of participation, like a benefit letter or official document, when you apply for the ACP. Learn more about the Tribal Benefit.
If You Already Receive a Lifeline Benefit
Lifeline is a Federal Communications Commission program to help make communications services more affordable for low-income consumers. If you currently receive a Lifeline benefit, you automatically qualify for the ACP, and you can receive both benefits at the same time. You can apply your ACP benefit and your Lifeline benefit to the same or separate services. Talk to your internet company to learn how to start receiving ACP discounts.
Qualify Through Your Child or Dependent
Any member of your household can make your household eligible if they participate in one of the programs above. For example, if your child or dependent participates in the Free and Reduced-Price School Lunch Program or is enrolled in a USDA Community Eligibility Provision school, your household qualifies for the ACP benefit.
The Affordable Connectivity Program is an FCC benefit program that helps ensure that households can afford the broadband they need for work, school, healthcare and more.
The benefit provides a discount of up to $30 per month toward internet service for eligible households and up to $75 per month for households on qualifying Tribal lands. Eligible households can also receive a one-time discount of up to $100 to purchase a laptop, desktop computer, or tablet from participating providers if they contribute more than $10 and less than $50 toward the purchase price.
The Affordable Connectivity Program is limited to one monthly service discount and one device discount per household.
Who Is Eligible for the Affordable Connectivity Program?
A household is eligible for the Affordable Connectivity Program if the household income is at or below 200% of the Federal Poverty Guidelines, or if a member of the household meets at least one of the criteria below:
Received a Federal Pell Grant during the current award year;
Meets the eligibility criteria for a participating provider's existing low-income internet program;
Participates in one of these assistance programs:
Free and Reduced-Price School Lunch Program or School Breakfast Program, including at U.S. Department of Agriculture (USDA) Community Eligibility Provision schools.
SNAP
Medicaid
Federal Housing Assistance, including:
Housing Choice Voucher (HCV) Program (Section 8 Vouchers)
Project-Based Rental Assistance (PBRA)/Section 202/ Section 811
Public Housing
Affordable Housing Programs for American Indians, Alaska Natives or Native Hawaiians
Supplemental Security Income (SSI)
WIC
Veterans Pension or Survivor Benefits
or Lifeline;
Participates in one of these assistance programs and lives on Qualifying Tribal lands:
Bureau of Indian Affairs General Assistance
Tribal TANF
Food Distribution Program on Indian Reservations
Tribal Head Start (income based)
The process for the bot is as follows:
1. Tell them to click the button above and follow the steps.
2. fill out the goverment ACP form once they have done that show them this image = https://starlight-91c82.firebaseapp.com/assets/acp-confirmed-d1aaf959.png
3. Tell them to call 1.800.837.4966 and generate a script for them to say to the agent with the following information:
- Tell Verizon that you already applied for the ACP and are receiving the $30/month credit to your account.
- Tell them you want the FREE Verizon 300 mbps plan.
RETURN ALL YOUR MESSAGES INCLUDING IMAGES AS MARKDOWN (including html):
"""
import os
openai.api_key = "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"
if "openai_model" not in st.session_state:
st.session_state["openai_model"] = "gpt-4"
if "messages" not in st.session_state:
st.session_state.messages = [{"role": "assistant", "content": """Hello, I am Steady Bot, I am here to guide you through the process of saving on your internet bill! According to my information looks like your provider is Verizon, lets get started!
"""}]
for message in st.session_state.messages:
with st.chat_message(message["role"]):
if message["role"] != "system":
st.markdown(message["content"], unsafe_allow_html=True)
if prompt := st.chat_input("What is up?"):
st.session_state.messages.append({"role": "user", "content": prompt})
with st.chat_message("user"):
st.markdown(prompt)
messages=[
{"role": m["role"], "content": m["content"]}
for m in st.session_state.messages
]
messages.append({"role": "system", "content": system_messages})
with st.chat_message("Steady"):
message_placeholder = st.empty()
full_response = ""
for response in openai.ChatCompletion.create(
model=st.session_state["openai_model"],
messages=messages,
stream=True,
):
full_response += response.choices[0].delta.get("content", "")
message_placeholder.markdown(full_response + "▌")
message_placeholder.markdown(full_response)
st.session_state.messages.append({"role": "Steady", "content": full_response})