Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,35 @@ def answer_question(context, question):
|
|
26 |
|
27 |
def chatbot_response(question):
|
28 |
context = (
|
29 |
-
|
30 |
-
|
31 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
)
|
33 |
return answer_question(context, question)
|
34 |
|
|
|
26 |
|
27 |
def chatbot_response(question):
|
28 |
context = (
|
29 |
+
context = (
|
30 |
+
"COVID-19 is a respiratory illness caused by the SARS-CoV-2 virus. It spreads mainly through respiratory droplets when an infected person coughs, sneezes, or talks. "
|
31 |
+
"The virus was first identified in December 2019 in Wuhan, China, and has since led to a global pandemic. Common symptoms include fever, cough, fatigue, and loss of taste or smell. "
|
32 |
+
"In severe cases, COVID-19 can lead to pneumonia, acute respiratory distress syndrome (ARDS), multi-organ failure, and even death. "
|
33 |
+
"It is particularly dangerous for older adults and people with underlying health conditions such as heart disease, diabetes, and respiratory conditions. "
|
34 |
+
"\n\n"
|
35 |
+
"Transmission: COVID-19 spreads mainly via close contact with infected individuals, especially when they are symptomatic. The virus can also spread through asymptomatic individuals, "
|
36 |
+
"making it challenging to control without preventive measures such as masks, social distancing, and quarantine. The virus can survive on surfaces for hours or days, so it's important to disinfect commonly touched objects and wash hands frequently."
|
37 |
+
"\n\n"
|
38 |
+
"Symptoms: In addition to fever, cough, and loss of taste or smell, some people may experience shortness of breath, body aches, headaches, sore throat, and gastrointestinal symptoms such as diarrhea. "
|
39 |
+
"Symptoms typically appear 2-14 days after exposure. The severity of symptoms can range from mild or asymptomatic cases to severe illness requiring hospitalization or ventilator support."
|
40 |
+
"\n\n"
|
41 |
+
"Testing: COVID-19 tests include PCR tests (Polymerase Chain Reaction) and antigen tests. PCR tests are considered the gold standard and detect viral genetic material, while antigen tests detect viral proteins. "
|
42 |
+
"Testing is crucial for identifying infected individuals, even if they are asymptomatic, to prevent the further spread of the virus."
|
43 |
+
"\n\n"
|
44 |
+
"Treatment: There is no specific cure for COVID-19, but treatment focuses on relieving symptoms. Patients with mild symptoms can typically recover at home with rest and fluids. "
|
45 |
+
"Severe cases may require hospitalization, oxygen therapy, and mechanical ventilation. Drugs such as remdesivir and monoclonal antibodies have been used to treat hospitalized patients. "
|
46 |
+
"Steroids like dexamethasone are commonly used for severe cases, while antivirals like Paxlovid have shown promise in early treatment."
|
47 |
+
"\n\n"
|
48 |
+
"Prevention: Vaccination is one of the most effective measures to reduce the severity and transmission of COVID-19. Vaccines from companies like Pfizer, Moderna, and AstraZeneca have shown high efficacy in preventing symptomatic infection, hospitalization, and death. "
|
49 |
+
"Preventive measures also include wearing masks, practicing social distancing, and frequently washing hands. Individuals should avoid large gatherings and stay home when feeling ill."
|
50 |
+
"\n\n"
|
51 |
+
"Variants: SARS-CoV-2 has mutated over time, leading to the emergence of new variants such as the Delta and Omicron variants. These variants may have different levels of transmissibility and resistance to immunity. "
|
52 |
+
"Ongoing studies are crucial to understanding how these variants impact the effectiveness of vaccines and treatments."
|
53 |
+
"\n\n"
|
54 |
+
"Long COVID: Some individuals, known as 'long haulers', continue to experience symptoms long after recovering from the initial infection. Symptoms of long COVID include fatigue, brain fog, joint pain, and difficulty breathing. "
|
55 |
+
"The exact cause of long COVID is still under investigation."
|
56 |
+
)
|
57 |
+
|
58 |
)
|
59 |
return answer_question(context, question)
|
60 |
|