File size: 600 Bytes
0d375ed
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from pydoc import describe
import gradio
from main import Main

main = Main()

def parse(cv):
    return main.parse(cv.name)

description = "This is a demo of the resume parser. \
    Upload a resume and it will return a JSON object with a detailed parsed resume data."
article = "Demo of detailed resume parser"
file_input = gradio.inputs.File(file_count="single", type="file", label="Upload your pdf resume (en)")
iface = gradio.Interface(fn=parse, inputs=file_input, outputs="json", 
                         title="Detailed Resume Parser", description=description, article=article)
iface.launch()