Spaces:
Sleeping
Sleeping
Update app.py
Browse files9 unmodified lines101112131415169 unmodified linesinput_text = "question: " + questioninputs = tokenizer(input_text, return_tensors="tf", padding=True)output = model.generate(**inputs, max_length=100)return tokenizer.decode(output[0], skip_special_tokens=True)gr.Interface(fn=ask_bot,9 unmodified lines101112131415161718199 unmodified linesinput_text = "question: " + questioninputs = tokenizer(input_text, return_tensors="tf", padding=True)output = model.generate(**inputs, max_length=100)result = tokenizer.decode(output[0], skip_special_tokens=True)print("Question:", question)print("Answer:", result)return resultgr.Interface(fn=ask_bot,
app.py+4-1