total_prompt
Browse files
app.py
CHANGED
|
@@ -125,7 +125,10 @@ Below is an instruction that describes a task, paired with an input that provide
|
|
| 125 |
### Response:\\n\
|
| 126 |
"""
|
| 127 |
|
| 128 |
-
|
|
|
|
|
|
|
|
|
|
| 129 |
gen_text = response["predictions"][0]["generated_text"]
|
| 130 |
return extract_json(gen_text, 3)
|
| 131 |
#return json.dumps(response)
|
|
|
|
| 125 |
### Response:\\n\
|
| 126 |
"""
|
| 127 |
|
| 128 |
+
total_prompt = n_shot_learning + prompt_template
|
| 129 |
+
print("***total_prompt:")
|
| 130 |
+
print(total_prompt)
|
| 131 |
+
response = get_completion(total_prompt)
|
| 132 |
gen_text = response["predictions"][0]["generated_text"]
|
| 133 |
return extract_json(gen_text, 3)
|
| 134 |
#return json.dumps(response)
|