Spaces:
Sleeping
Sleeping
Allen Park
commited on
Commit
·
a60c539
1
Parent(s):
11d1d2d
fix(update examples)
Browse files
app.py
CHANGED
@@ -34,35 +34,48 @@ Your output should be in JSON FORMAT with the keys "REASONING" and "SCORE":
|
|
34 |
|
35 |
EXAMPLES = [
|
36 |
{
|
37 |
-
"emoji": "
|
38 |
-
"question": "
|
39 |
-
"document":
|
40 |
-
"answer": "
|
41 |
},
|
42 |
{
|
43 |
-
"emoji": "
|
44 |
-
"question": "
|
45 |
-
"document": "
|
46 |
-
"answer": "
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
},
|
48 |
{
|
49 |
-
"emoji": "
|
50 |
-
"question": "
|
51 |
-
"document": "
|
52 |
-
"answer": "
|
53 |
},
|
54 |
{
|
55 |
-
"emoji": "
|
56 |
-
"question": "
|
57 |
-
"document": "
|
58 |
-
"answer": "
|
|
|
|
|
|
|
|
|
|
|
|
|
59 |
},
|
60 |
{
|
61 |
-
"emoji": "
|
62 |
-
"question": "
|
63 |
-
"document": "
|
64 |
-
"answer": "
|
65 |
}
|
|
|
66 |
]
|
67 |
|
68 |
with open('logo.svg', 'r') as file:
|
|
|
34 |
|
35 |
EXAMPLES = [
|
36 |
{
|
37 |
+
"emoji": "🏈",
|
38 |
+
"question": "How many yards Hanson score with in the first?",
|
39 |
+
"document": "To start the season, the Lions traveled south to Tampa, Florida to take on the Tampa Bay Buccaneers. The Lions scored first in the first quarter with a 23-yard field goal by Jason Hanson. The Buccaneers tied it up with a 38-yard field goal by Connor Barth, then took the lead when Aqib Talib intercepted a pass from Matthew Stafford and ran it in 28 yards. The Lions responded with a 28-yard field goal. In the second quarter, Detroit took the lead with a 36-yard touchdown catch by Calvin Johnson, and later added more points when Tony Scheffler caught an 11-yard TD pass. Tampa Bay responded with a 31-yard field goal just before halftime. The second half was relatively quiet, with each team only scoring one touchdown. First, Detroit's Calvin Johnson caught a 1-yard pass in the third quarter. The game's final points came when Mike Williams of Tampa Bay caught a 5-yard pass. The Lions won their regular season opener for the first time since 2007",
|
40 |
+
"answer": "28"
|
41 |
},
|
42 |
{
|
43 |
+
"emoji": "🫁",
|
44 |
+
"question": "Does timing of initial surfactant treatment make a difference in rates of chronic lung disease or mortality in premature infants?",
|
45 |
+
"document": "To compare two treatment strategies in preterm infants with or at risk of respiratory distress syndrome: early surfactant administration (within one hour of birth) versus late surfactant administration, in a geographically defined population. The primary outcome was chronic lung disease (CLD) and mortality before/at 36 weeks. Secondary outcomes included: duration of mechanical ventilation and continuous positive airway pressure (CPAP), post-natal steroids for CLD and major neonatal morbidities. Premature infants born at 22-32 weeks' gestation between January 2006 and December 2009. Ten neonatal intensive care units (NICUs) in New South Wales (NSW) and Australian Capital Territory (ACT), Australia. Retrospective analysis of prospectively collected data from the regional NICU database in NSW and ACT. Of the 2170 infants who received surfactant, 1182 (54.5%) and 988 (45.5%) received early and late surfactant, respectively. The early surfactant group was less mature (27.1 ± 2.1 versus 29.4 ± 2.1 weeks) and had more CLD and mortality (40.2% versus 20.0%). The multivariable analysis showed early surfactant to be associated with less duration of ventilation, longer duration of CPAP and longer hospital stay but had little or no impact on CLD/mortality.",
|
46 |
+
"answer": "Yes. Early surfactant administration significantly reduces the rates of chronic lung disease and mortality among premature infants. This supports the routine use of early surfactant treatment over alternatives like CPAP, especially in very premature infants. Further large-scale studies are still needed to solidify these findings."
|
47 |
+
},
|
48 |
+
{
|
49 |
+
"emoji": "🏭",
|
50 |
+
"question": "Where does Vitol has its headquarter?",
|
51 |
+
"document": "Information in the list relates to the most recent fiscal year (mostly FY 2022 or 2023). Rank Name Industry Revenue Profit Employees Headquarters[note 1] State-owned Ref. Revenue per worker USD millions 1 Walmart Retail Increase $611,289 $11,680 2,100,000 United States United States No [1] $291,090.00 2 Saudi Aramco Oil and gas Increase $603,651 $159,069 70,496 Saudi Arabia Saudi Arabia Yes [4] $8,562,911.37 3 Amazon Retail Increase $574,785 $30,425 1,525,000 United States United States No [5] $376,908 4 State Grid Corporation of China Electricity Increase $530,009 $8,192 870,287 China China Yes [6] $609,004.85 5 Vitol Commodities Increase $505,000 $15,000 1,560 Switzerland No [7][8] $323,717,948.72 6 China National Petroleum Corporation Oil and gas Increase $483,019 $21,080 1,087,049 China China Yes [9] $444,339.68 7 China Petrochemical Corporation Oil and gas Increase $471,154 $9,657 527,487 China China Yes [10] $893,204.95",
|
52 |
+
"answer": "United States."
|
53 |
},
|
54 |
{
|
55 |
+
"emoji": "🩺",
|
56 |
+
"question": "What does the abbreviation of VD mean in the context of students?",
|
57 |
+
"document": "A sexually transmitted infection (STI), also referred to as a sexually transmitted disease (STD) and the older term venereal disease (VD), is an infection that is spread by sexual activity, especially vaginal intercourse, anal sex, oral sex, or sometimes manual sex.",
|
58 |
+
"answer": "In the context of student, VD stands usually for Valedictorian, an academic title for the highest-performing student of a graduating class of an academic institution."
|
59 |
},
|
60 |
{
|
61 |
+
"emoji": "💻",
|
62 |
+
"question": "How much market cap does Microsoft, Apple and Nvidia have together?",
|
63 |
+
"document": "Here's a list of the top 10 companies by market cap in 2024 (as of February 13, 2024): Company Sector Market Cap (in USD) #1 Microsoft Technology $3.085 trillion #2 Apple Technology $2.889 trillion #3 Saudi Aramco Oil & Gas $1.997 trillion #4 Alphabet (Google) Technology $1.841 trillion #5 Amazon E-commerce $1.790 trillion #6 Nvidia Technology $1.784 trillion #7 Meta Platforms Social Media $1.195 trillion #8 Berkshire Hathaway Diversified Investments $861.74 billion #09 Eli Lilly Pharmaceuticals $699.88 billion #10 TSMC Semiconductors $676.61 billion",
|
64 |
+
"answer": "They have a shared market cap of $ 7.758 trillion USD."
|
65 |
+
},
|
66 |
+
{
|
67 |
+
"emoji": "📈",
|
68 |
+
"question": "Which company has the largest market cap in 2024?",
|
69 |
+
"document": "Here's a list of the top 10 companies by market cap in 2024 (as of February 13, 2024): Company Sector Market Cap (in USD) #1 Microsoft Technology $3.085 trillion #2 Apple Technology $2.889 trillion #3 Saudi Aramco Oil & Gas $1.997 trillion #4 Alphabet (Google) Technology $1.841 trillion #5 Amazon E-commerce $1.790 trillion #6 Nvidia Technology $1.784 trillion #7 Meta Platforms Social Media $1.195 trillion #8 Berkshire Hathaway Diversified Investments $861.74 billion #09 Eli Lilly Pharmaceuticals $699.88 billion #10 TSMC Semiconductors $676.61 billion",
|
70 |
+
"answer": "Alphabet has the largest market cap with $1.841 trillion USD"
|
71 |
},
|
72 |
{
|
73 |
+
"emoji": "🪖",
|
74 |
+
"question": "When did World War II start?",
|
75 |
+
"document": """World War II[b] or the Second World War was a global conflict that lasted from 1939 to 1945. The vast majority of the world's countries, including all the great powers, fought as part of two opposing military alliances: the Allies and the Axis. Many participating countries invested all available economic, industrial, and scientific capabilities into this total war, blurring the distinction between civilian and military resources. Aircraft played a major role, enabling the strategic bombing of population centres and delivery of the only two nuclear weapons ever used in war. It was by far the deadliest conflict in history, resulting in 70–85 million fatalities. Millions died due to genocides, including the Holocaust, as well as starvation, massacres, and disease. In the wake of Axis defeat, Germany, Austria, and Japan were occupied, and war crime tribunals were conducted against German and Japanese leaders. The causes of the war are debated; contributing factors included the rise of fascism in Europe, the Spanish Civil War, the Second Sino-Japanese War, Soviet–Japanese border conflicts, and tensions in the aftermath of World War I. World War II is generally considered to have begun on 1 September 1939, when Nazi Germany, under Adolf Hitler, invaded Poland. The United Kingdom and France declared war on Germany on 3 September. Under the Molotov–Ribbentrop Pact of August 1939, Germany and the Soviet Union had partitioned Poland and marked out their "spheres of influence" across Finland, Estonia, Latvia, Lithuania, and Romania. From late 1939 to early 1941, in a series of campaigns and treaties, Germany conquered or controlled much of continental Europe in a military alliance called the Axis with Italy, Japan, and other countries. Following the onset of campaigns in North and East Africa, and the fall of France in mid-1940, the war continued primarily between the European Axis powers and the British Empire, with the war in the Balkans, the aerial Battle of Britain, the Blitz of the UK, and the Battle of the Atlantic. In June 1941, Germany led the European Axis powers in an invasion of the Soviet Union, opening the Eastern Front, the largest land theatre of war in history.""",
|
76 |
+
"answer": "It started on 3 September 1939 when France and United Kingdom declared war on Germany."
|
77 |
}
|
78 |
+
|
79 |
]
|
80 |
|
81 |
with open('logo.svg', 'r') as file:
|