Spaces:
Runtime error
Runtime error
debugging gradio not receiving any images
Browse filesFiles changed (2)
- app.py+2-1
- bayes/data_routines.py+1-1
82 unmodified lines8384858687888982 unmodified linesreturn image.rotate(45)if __name__ == "__main__":inp = gr.inputs.Textbox(lines=1, placeholder="Insert file path here", default="", label="Input Image Path", optional=False)out = gr.outputs.HTML(label="Output Video")82 unmodified lines838485868788899082 unmodified linesreturn image.rotate(45)if __name__ == "__main__":# gradio's image inputs look like this: <PIL.Image.Image image mode=RGB size=305x266 at 0x7F3D01C91FA0># need to learn how to handle image inputs, or deal with file inputs or just file path stringsinp = gr.inputs.Textbox(lines=1, placeholder="Insert file path here", default="", label="Input Image Path", optional=False)out = gr.outputs.HTML(label="Output Video")
127 unmodified lines128129130131132133134127 unmodified linesimages_paths = []# Store all the paths of the imagesdata_dir = os.path.join("../data", name)for (dirpath, dirnames, filenames) in os.walk(data_dir):for fn in filenames:if fn != ".DS_Store":127 unmodified lines128129130131132133134127 unmodified linesimages_paths = []# Store all the paths of the imagesdata_dir = os.path.join("./data", name)for (dirpath, dirnames, filenames) in os.walk(data_dir):for fn in filenames:if fn != ".DS_Store":
app.py+2-1
bayes/data_routines.py+1-1