Spaces:
Runtime error
Runtime error
app.py
CHANGED
|
@@ -39,7 +39,7 @@ word: """
|
|
| 39 |
|
| 40 |
prompt = """
|
| 41 |
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?
|
| 42 |
-
A: The answer (arabic numerals) is"""
|
| 43 |
|
| 44 |
examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
|
| 45 |
|
|
@@ -47,7 +47,7 @@ examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
|
|
| 47 |
def poem_generate(word):
|
| 48 |
|
| 49 |
#p = prompt + word.lower() + "\n" + "poem using word: "
|
| 50 |
-
p = prompt
|
| 51 |
print(f"*****Inside poem_generate - Prompt is :{p}")
|
| 52 |
json_ = {"inputs": p,
|
| 53 |
"parameters":
|
|
|
|
| 39 |
|
| 40 |
prompt = """
|
| 41 |
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?
|
| 42 |
+
A: The answer (arabic numerals) is """
|
| 43 |
|
| 44 |
examples = [["river"], ["night"], ["trees"],["table"],["laughs"]]
|
| 45 |
|
|
|
|
| 47 |
def poem_generate(word):
|
| 48 |
|
| 49 |
#p = prompt + word.lower() + "\n" + "poem using word: "
|
| 50 |
+
p = prompt #+ word.lower()
|
| 51 |
print(f"*****Inside poem_generate - Prompt is :{p}")
|
| 52 |
json_ = {"inputs": p,
|
| 53 |
"parameters":
|