#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
import argparse | |
import gradio as gr | |
import platform | |
def get_args(): | |
parser = argparse.ArgumentParser() | |
args = parser.parse_args() | |
return args | |
def main(): | |
args = get_args() | |
brief_description = """ | |
## NLP Tools | |
NLP Tools Demo | |
""" | |
# ui | |
with gr.Blocks() as blocks: | |
gr.Markdown(value=brief_description) | |
blocks.queue().launch( | |
share=False if platform.system() == "Windows" else False | |
) | |
return | |
if __name__ == '__main__': | |
main() | |