Spaces:
Sleeping
Sleeping
Commit ·
3e6ffb6
1
Parent(s): 8ed47c6
Initial commit
Browse filesFiles changed (2)
- app.py+7-4
- requirements.txtAdded+4
1234567import gradio as grdef greet(name):return "Hello " + name + "!!"demo = gr.Interface(fn=greet, inputs="text", outputs="text")demo.launch()12345678910import gradio as grfrom transformers import pipelinemodel = pipeline("image-classification", model="wellCh4n/tomato-leaf-disease-classification-vit")def classify(image):result = model(image)return resultgr.Interface(fn=classify, inputs="image", outputs="label").launch()
1234transformersgradiotorchPillowapp.py+7-4
requirements.txtAdded+4