File size: 658 Bytes
cfbfc47
 
 
 
 
 
 
 
 
 
 
 
fcf2e7e
7cf946c
cfbfc47
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from pydoc import describe
import gradio as gr
from Main import Main


main = Main()

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

description = """A demo for a CV parser built with HuggingFace's transformers."""
article = "Find the code on GitHub 🚀: https://github.com/asimokby/cv-parser-huggingface"
file_input = gr.inputs.File(file_count="single", type="file", label="Upload a CV: .PDF Or .TXT", optional=False)
iface = gr.Interface(fn=parse_cv, inputs=file_input, outputs="json", allow_flagging="never",
                    allow_screenshot=False, title="CV Parser", theme="dark", description=description, article=article)

iface.launch()