Spaces:
Runtime error
Runtime error
File size: 258 Bytes
af90925 |
1 2 3 4 5 6 7 8 9 10 11 |
from utils import get_search_index, generate_answer, set_model_and_embeddings
def index(model):
set_model_and_embeddings(model)
get_search_index(model)
return True
def run(question, model):
index(model)
return generate_answer(question)
|