Spaces:
Build error
Build error
| import model as st_model | |
| import gradio as gr | |
| model = st_model.summarizer() | |
| def inference(text): | |
| documents = [text] | |
| model.summarize(documents) | |
| return model.summarize(documents)[0] | |
| title = "Anime2Sketch" | |
| description = "demo for Anime2Sketch. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below." | |
| article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2104.05703'>Adversarial Open Domain Adaption for Sketch-to-Photo Synthesis</a> | <a href='https://github.com/Mukosame/Anime2Sketch'>Github Repo</a></p>" | |
| gr.Interface( | |
| inference, | |
| [gr.inputs.Textbox(label="Input")], | |
| gr.outputs.Textbox(label="Output"), | |
| title=title, | |
| description=description, | |
| article=article | |
| ).launch(debug=True) |