bhuvan-2005's picture
Update app.py
cc0c4d2 verified
raw
history blame contribute delete
348 Bytes
import gradio as gr
from question_extractor import hf_predict # from your file
def predict(file):
return hf_predict(file)
iface = gr.Interface(
fn=predict,
inputs=gr.File(type="filepath", label="file"), # label must be "file"
outputs="text",
title="Question Paper Extractor",
)
if __name__ == "__main__":
iface.launch()