How to use uploaded files in colab tensorflow?

Viewed 10501

I have uploaded my train.csv and valid.csv into colab using the files.upload() snippet:

User uploaded file "valid.txt" with length 3387762 bytes User uploaded file "train.txt" with length 9401172 bytes

Running some tensorflow code that runs ok locally and fetches files in the current directory, causes the following error in Colab:

InvalidArgumentError: assertion failed: [string_input_producer requires a non-null input tensor] [[Node: input_producer/Assert/Assert = Assert[T=[DT_STRING], summarize=3, _device="/job:localhost/replica:0/task:0/device:CPU:0"](input_producer/Greater, input_producer/Assert/Assert/data_0)]]

I assume the code can't see the files? What's the path to the uploaded files?

1 Answers
Related