|
from handler import EndpointHandler |
|
import pandas as pd |
|
|
|
|
|
response_model_handler = EndpointHandler() |
|
|
|
|
|
payload = {'inputs': {"instruction": "What are some ways to stay energized throughout the day?", |
|
"response": "Drink lots of coffee!"}} |
|
|
|
|
|
pred=response_model_handler(payload) |
|
|
|
print(pred) |
|
|
|
payload = {'inputs': [{"instruction": "What are some ways to stay energized throughout the day?", |
|
"response": "Drink lots of coffee!"}, |
|
{"instruction": "What are some ways to stay energized throughout the day?", |
|
"response": "Buy lots of sailboats!"}]} |
|
|
|
|
|
pred=response_model_handler(payload) |
|
|
|
print(pred) |