File size: 774 Bytes
7b361da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
from app_modules.utils import logging
class EmptyStubInterface:
def __init__(self):
pass
def initialize(self):
pass
def shutdown(self):
pass
def predict(
self,
text,
chatbot,
history,
top_p,
temperature,
max_length_tokens,
max_context_length_tokens,
):
logging.info("hi there")
logging.info("-" * 100)
# yield chatbot,history,"Empty context."
yield [[text, "No Model Found"]], [], "No Model Found"
def retry(
self,
text,
chatbot,
history,
top_p,
temperature,
max_length_tokens,
max_context_length_tokens,
):
yield chatbot, history, "Empty context"
|