Spaces:
Runtime error
Runtime error
Update app.py
Browse files150 unmodified lines151152153154155156157158159160161162163164165166150 unmodified linesreturn text_no_impl, tag_scorewith gr.Blocks() as demo:with gr.Tab("Single Image"):gr.Interface(create_tags,inputs=[gr.Image(label="Source", sources=['upload', 'webcam'], type='pil'), gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.30, label="Threshold")],outputs=[gr.Textbox(label="Tag String"),gr.Label(label="Tag Predictions", num_top_classes=200),],allow_flagging="never",)if __name__ == "__main__":demo.launch()150 unmodified lines151152153154155156157158159160161162163164165166167168169170171172173150 unmodified linesreturn text_no_impl, tag_scorewith gr.Blocks() as demo:gr.Markdown("""## Joint Tagger Project: PILOT DemoThis tagger is designed for use on furry images (though may very well work on out-of-distribution images, potentially with funny results). A threshold of 0.2 is recommended. Lower thresholds often turn up more valid tags, but can also result in some amount of hallucinated tags.This tagger is the result of joint efforts between members of the RedRocket team.Special thanks to Minotoro at frosting.ai for providing the compute power for this project.""")gr.Interface(create_tags,inputs=[gr.Image(label="Source", sources=['upload', 'webcam'], type='pil'), gr.Slider(minimum=0.00, maximum=1.00, step=0.01, value=0.20, label="Threshold")],outputs=[gr.Textbox(label="Tag String"),gr.Label(label="Tag Predictions", num_top_classes=200),],allow_flagging="never",)if __name__ == "__main__":demo.launch()
app.py+17-10