Benjamin Consolvo commited on
Commit
4c1f95a
1 Parent(s): cce3268

sparse answer

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -46,13 +46,12 @@ Author of Hugging Face Space: Benjamin Consolvo, AI Solutions Engineer Manager a
46
  # predict()
47
  context=gr.Text(lines=10,label="Context")
48
  question=gr.Text(label="Question")
49
- sparse_answer=gr.Text(label="Dense Answer")
50
  sparse_duration=gr.Text(label="Sparse latency (ms)")
 
51
  dense_answer=gr.Text(label="Dense Answer")
52
  dense_duration=gr.Text(label="Dense latency (ms)")
53
 
54
-
55
-
56
  apple_context = "An apple is an edible fruit produced by an apple tree (Malus domestica). Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus. The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. Apples have been grown for thousands of years in Asia and Europe and were brought to North America by European colonists. Apples have religious and mythological significance in many cultures, including Norse, Greek, and European Christian tradition. Apples grown from seed tend to be very different from those of their parents, and the resultant fruit frequently lacks desired characteristics. Generally, apple cultivars are propagated by clonal grafting onto rootstocks. Apple trees grown without rootstocks tend to be larger and much slower to fruit after planting. Rootstocks are used to control the speed of growth and the size of the resulting tree, allowing for easier harvesting."
57
  apple_question = "How many years have apples been grown for?"
58
 
 
46
  # predict()
47
  context=gr.Text(lines=10,label="Context")
48
  question=gr.Text(label="Question")
49
+ sparse_answer=gr.Text(label="Sparse Answer")
50
  sparse_duration=gr.Text(label="Sparse latency (ms)")
51
+
52
  dense_answer=gr.Text(label="Dense Answer")
53
  dense_duration=gr.Text(label="Dense latency (ms)")
54
 
 
 
55
  apple_context = "An apple is an edible fruit produced by an apple tree (Malus domestica). Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus. The tree originated in Central Asia, where its wild ancestor, Malus sieversii, is still found today. Apples have been grown for thousands of years in Asia and Europe and were brought to North America by European colonists. Apples have religious and mythological significance in many cultures, including Norse, Greek, and European Christian tradition. Apples grown from seed tend to be very different from those of their parents, and the resultant fruit frequently lacks desired characteristics. Generally, apple cultivars are propagated by clonal grafting onto rootstocks. Apple trees grown without rootstocks tend to be larger and much slower to fruit after planting. Rootstocks are used to control the speed of growth and the size of the resulting tree, allowing for easier harvesting."
56
  apple_question = "How many years have apples been grown for?"
57