melindakhosasih commited on
Commit ·
02e6287
1
Parent(s): a52f2f0
add image
Browse filesFiles changed (3)
- .gitignoreAdded+80
- app.py+26-1
- img_1.jpgAdded
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980# Python build.eggs/gradio.egg-infodist/*.pyc__pycache__/*.py[cod]*$py.classbuild/__tmp/**.pyipy.typed
# JS buildgradio/templates/*gradio/node/*gradio/_frontend_code/*js/gradio-preview/test/*
# Secrets.env
# Gradio run artifacts*.db*.sqlite3gradio/launches.jsonflagged/gradio_cached_examples/tmp.zip
# Tests.coveragecoverage.xmltest.txt**/snapshots/**/*.pngplaywright-report/
# Demosdemo/tmp.zipdemo/files/*.avidemo/files/*.mp4demo/all_demos/demos/*demo/all_demos/requirements.txtdemo/*/config.jsondemo/annotatedimage_component/*.png
# Etc.idea/*.DS_Store*.bakworkspace.code-workspace*.h5
# dev containers.pnpm-store/
# log files.pnpm-debug.log
# Local virtualenv for devs.venv*
# FRPgradio/frpc_*.vercel
# jsnode_modulespublic/build/test-resultsclient/js/test.js.config/test.py
# storybookstorybook-staticbuild-storybook.logjs/storybook/theme.css
# playwright.config/playwright/.cache31 unmodified lines3233343531 unmodified lineselse:return "Not Santa", imggr.Interface(fn=predict, inputs=gr.Image(type="pil"), outputs=[gr.Textbox(type="text", label="Text Prediction"), gr.Image(type="pil", label="Image Prediction")]).launch(debug=True)31 unmodified lines323334353637383940414243444546474849505152535455565758596031 unmodified lineselse:return "Not Santa", imgwith gr.Blocks() as demo:# Titlegr.HTML("""<img src="file/img_1.jpg" alt="Image">""")# # Instructions# gr.Text(# """# ### Instructions# 1. Upload an image of the cafeteria item.# 2. The model will predict the item and estimate its price.# 3. View the image prediction and the estimated price in the interface.# """)# Model Evaluationgr.Interface(fn=predict,inputs=gr.Image(type="pil"),outputs=[gr.Textbox(type="text", label="Price Prediction"),gr.Image(type="pil", label="Image Prediction")])if __name__ == "__main__":demo.launch()
.gitignoreAdded+80
app.py+26-1
img_1.jpgAdded
