Spaces:
Build error
Build error
updated examples
Browse files
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 |
-
#
|
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 |
-
|
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 |
|