ysharma HF staff commited on
Commit
d503c79
1 Parent(s): 2787b95

updated examples

Browse files
Files changed (1) hide show
  1. app.py +2 -14
app.py CHANGED
@@ -7,26 +7,14 @@ API_URL = "https://api-inference.huggingface.co/models/bigscience/bloom"
7
  HF_TOKEN = os.environ["HF_TOKEN"]
8
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
9
 
10
- #Testing various prompts initially
11
  prompt1 = """
12
- word: risk
13
- poem using word: And then the day came,
14
- when the risk
15
- to remain tight
16
- in a bud
17
- was more painful
18
- than the risk
19
- it took
20
- to blossom.
21
- word: """
22
-
23
- prompt2 = """
24
  Q: Joy has 5 balls. He buys 2 more cans of balls. Each can has 3 balls. How many balls he has now?
25
  A: Joy had 5 balls. 2 cans of 3 balls each is 6 balls. 5 + 6 = 11. Answer is 11.
26
  Q: Jane has 16 balls. Half balls are golf balls, and half golf balls are red. How many red golf balls are there?
27
  A: """
28
 
29
- prompt3 = """Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?
30
  A: Let’s think step by step.
31
  """
32
 
 
7
  HF_TOKEN = os.environ["HF_TOKEN"]
8
  headers = {"Authorization": f"Bearer {HF_TOKEN}"}
9
 
10
+ #Tested various prompts initially
11
  prompt1 = """
 
 
 
 
 
 
 
 
 
 
 
 
12
  Q: Joy has 5 balls. He buys 2 more cans of balls. Each can has 3 balls. How many balls he has now?
13
  A: Joy had 5 balls. 2 cans of 3 balls each is 6 balls. 5 + 6 = 11. Answer is 11.
14
  Q: Jane has 16 balls. Half balls are golf balls, and half golf balls are red. How many red golf balls are there?
15
  A: """
16
 
17
+ prompt2 = """Q: A juggler can juggle 16 balls. Half of the balls are golf balls, and half of the golf balls are blue. How many blue golf balls are there?
18
  A: Let’s think step by step.
19
  """
20