Spaces:
Sleeping
Sleeping
app.py
CHANGED
|
@@ -30,10 +30,9 @@ def get_completion(prompt, model="dolly-v0-70m"):
|
|
| 30 |
|
| 31 |
# Use the model to generate responses for each of the instructions above.
|
| 32 |
for instruction in instructions:
|
| 33 |
-
|
| 34 |
if response:
|
| 35 |
-
|
| 36 |
-
|
| 37 |
return response
|
| 38 |
|
| 39 |
def greet(input):
|
|
|
|
| 30 |
|
| 31 |
# Use the model to generate responses for each of the instructions above.
|
| 32 |
for instruction in instructions:
|
| 33 |
+
response = generate_response(instruction, model=model, tokenizer=tokenizer, **pipeline_kwargs)
|
| 34 |
if response:
|
| 35 |
+
print(f"Instruction: {instruction}\n\n{response}\n\n-----------\n")
|
|
|
|
| 36 |
return response
|
| 37 |
|
| 38 |
def greet(input):
|