CoolFace
Apppublic

kanishka207004/document_analysis

sourceHugging Faceupdated 4y agoView on Hugging Face
0likes
app.py20 linesDownload Raw Back to root
1import gradio as gr2 3# creating the function4def func(context, question):5  result = nlp(question = question, context=context)6  return result['answer'] 7    8 9# creating the interface10 11app = gr.Interface(fn=func12                   , inputs = ['textbox', 'text'],13                   outputs = 'textbox', 14                   title = 'Question Answering bot',15                   theme = 'dark-grass',16                   description = 'Input context and question, then get answers!',17    18                   )19# launching the app20app.launch(share= True )