Spaces:
Runtime error
Runtime error
Aar贸n Espasand铆n commited on
Commit 路
3674354
1
Parent(s): a4b2962
Changes related to Gradio update
Browse filesFiles changed (2)
- app.py+7-6
- requirements.txt+3-3
88 unmodified lines899091929394959697989910010188 unmodified linesinterface = gr.Interface(fn=predict,inputs=[gr.inputs.Image(label="Input Image", type="pil"),"text"],outputs=[gr.outputs.Label(label="Class"),"text",gr.outputs.Image(label="Face with Explainability", type="numpy")],examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)]).launch()88 unmodified lines899091929394959697989910010110288 unmodified linesinterface = gr.Interface(fn=predict,inputs=[gr.components.Image(label="Input Image", type="pil"), # Updated component import and typegr.components.Text(label="Your Text Input") # Updated component import],outputs=[gr.components.Label(label="Class"), # Updated component importgr.components.Text(label="Your Text Output"), # Updated component importgr.components.Image(label="Face with Explainability", type="numpy") # Updated component import and type],examples=[[examples[i]["path"], examples[i]["label"]] for i in range(10)],cache_examples=True # Adjusted according to the new parameter for caching examples if needed).launch()
123456gradio==3.14.0Pillowfacenet-pytorch==2.5.2torch==1.11.0opencv-pythongrad-cam123456gradioPillowfacenet-pytorchtorchopencv-pythongrad-cam
app.py+7-6
requirements.txt+3-3